Ticket #2663: pop-admin-fix.patch

File pop-admin-fix.patch, 1.0 KB (added by Joeboy, 18 years ago)
  • django/contrib/admin/views/row_level_permissions.py

     
    7878    group_ct = model_ct = ContentType.objects.get_for_model(Group)
    7979    user_ct = model_ct = ContentType.objects.get_for_model(User)
    8080    for r in rlp_list:
    81         owner_val = str(r.owner_ct)+"-"+str(r.owner_id)
     81        owner_val = "%s/%s/%d" % ('auth', r.owner_ct.name, r.owner_id)
    8282        data = {'id':r.id, 'owner':owner_val, 'perm':r.permission.id, 'negative':r.negative}
    8383       
    8484        if r.owner_ct.id is user_ct.id:
     
    241241   
    242242    return HttpResponseRedirect(request.META["HTTP_REFERER"])
    243243
    244 change_row_level_permission = staff_member_required(never_cache(change_row_level_permission))
    245  No newline at end of file
     244change_row_level_permission = staff_member_required(never_cache(change_row_level_permission))
Back to Top