@permission_required("core.manage_shop")
def assign_properties(request, group_id):
    for property_id in request.POST.getlist("property-id"):
        GroupsPropertiesRelation.objects.get_or_create(group_id=group_id, property_id=property_id)

    _udpate_positions(group_id)

    html = [["#properties", properties_inline(request, group_id)]]
    result = json.dumps({
        "html": html,
        "message": _(u"Properties have been assigned.")
    }, cls=LazyEncoder)

    return HttpResponse(result, content_type='application/json')
Check a real general matrix for invalid entries
dataset/ETHPy150Open diefenbach/django-lfs/lfs/manage/property_groups/views.py/assign_properties--crossover with--dataset/ETHPy150Open lebedov/scikit-cuda/skcuda/cula.py/culaDeviceSgeNancheck