Kaydet (Commit) 0e2f2156 authored tarafından Russell Keith-Magee's avatar Russell Keith-Magee

Fixed #13529 -- Corrected ModelAdmin example. Thanks to stephane@actinetwork.com for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13242 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst d0d3e679
......@@ -880,7 +880,7 @@ to show objects owned by the logged-in user::
class MyModelAdmin(admin.ModelAdmin):
def queryset(self, request):
qs = super(self, MyModelAdmin).queryset(request)
qs = super(MyModelAdmin, self).queryset(request)
if request.user.is_superuser:
return qs
return qs.filter(author=request.user)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment