Ticket #2663: pop-admin-fix.patch
File pop-admin-fix.patch, 1.0 KB (added by , 18 years ago) |
---|
-
django/contrib/admin/views/row_level_permissions.py
78 78 group_ct = model_ct = ContentType.objects.get_for_model(Group) 79 79 user_ct = model_ct = ContentType.objects.get_for_model(User) 80 80 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) 82 82 data = {'id':r.id, 'owner':owner_val, 'perm':r.permission.id, 'negative':r.negative} 83 83 84 84 if r.owner_ct.id is user_ct.id: … … 241 241 242 242 return HttpResponseRedirect(request.META["HTTP_REFERER"]) 243 243 244 change_row_level_permission = staff_member_required(never_cache(change_row_level_permission)) 245 No newline at end of file 244 change_row_level_permission = staff_member_required(never_cache(change_row_level_permission))