Fixed #22396 admin AllValuesFieldListFilter not respecting ModelAdmin.get_queryset #2522

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants

serialx commented Apr 7, 2014

Admin's AllValuesFieldListFilter object does not respect ModelAdmin.get_queryset. Instead it mysteriously calls reverse_field_path() method and uses the _default_manager to get the queryset.

It causes problems when the default database has no table for the model, and only the other databases has the table. It causes "Table not found" query error message.

serialx changed the title from Fix admin AllValuesFieldListFilter not respecting ModelAdmin.get_queryset to Fixed #22396: admin AllValuesFieldListFilter not respecting ModelAdmin.get_queryset Apr 7, 2014

serialx changed the title from Fixed #22396: admin AllValuesFieldListFilter not respecting ModelAdmin.get_queryset to Fixed #22396 admin AllValuesFieldListFilter not respecting ModelAdmin.get_queryset Apr 7, 2014

Owner

timgraham commented Apr 28, 2014

Can you add a test to demonstrate the problem?

Owner

timgraham commented Apr 29, 2014

Closing per ticket.

timgraham closed this Apr 29, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment