Issue #3 resolved

Respect custom model_admin querysets

Rajeesh Nair avatarRajeesh Nair created an issue

Sometimes, developer may write custom queryset in some model_admins so that each user is able to view only a subset of all objects. eg, An admin-user can view only those objects she created herself. But our monitorentry changelist, Moderation Queue, which shows the counts of pending/challenged objects of moderated models counts all objects in database. It may confuse the user when the queue says that there are 10 pending objects but she is able to view 3 only. Even after moderating those 3 objects, system says there are 7 more pending!

Attached a diff for testing the issue.

Comments (1)

  1. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.