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.

  • Participants
  • Parent commits 47faa1e
  • Branches releases/1.1.X

Comments (0)

Files changed (1)

File 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)