Issue #3 resolved

Respect custom model_admin querysets

Rajeesh Nair
repo owner 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. Rajeesh Nair reporter

    Django-monitor: Fixed #3

    • Issue #3 was about django_monitor not respecting the presence of custom model_admin.queryset methods. Added tests for it and fixed the same. Refer issues section in bitbucker repo for details.

    4ac1b7a86215

  2. Log in to comment