Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #13529 -- Corrected ModelAdmin example. Thanks to stephane@acti…

… for the report.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 0e2f2156253e18bd174cb162152b7709850a5e55 1 parent d0d3e67
@freakboy3742 freakboy3742 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  docs/ref/contrib/admin/index.txt
2  docs/ref/contrib/admin/index.txt
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.