Commits

Anonymous committed 8b65491

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

Backport of r13242 from trunk.

Comments (0)

Files changed (1)

docs/ref/contrib/admin/index.txt

 
     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)