Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

[1.1.X] Fixed #13529 -- Corrected ModelAdmin example. Thanks to steph…

… for the report.

Backport of r13242 from trunk.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 6f2a844 commit 242c7f39400388856396a2b42c3512173db25f3d @freakboy3742 freakboy3742 committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  docs/ref/contrib/admin/index.txt
2  docs/ref/contrib/admin/index.txt
@@ -832,7 +832,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)

0 comments on commit 242c7f3

Please sign in to comment.
Something went wrong with that request. Please try again.