Changes between Initial Version and Version 1 of Ticket #23055


Ignore:
Timestamp:
Jul 17, 2014, 3:52:56 PM (10 years ago)
Author:
Ramiro Morales
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23055 – Description

    initial v1  
    1 If one is using a ModelAdmin with a custom `get_queryset()` method e.g as described in https://docs.djangoproject.com/en/1.7/topics/db/multi-db/#exposing-multiple-databases-in-django-s-admin-interface to handle routing of models hosted in a multi-DB setup, displaying the change list works as expected.
     1If one is using a ModelAdmin with a custom `get_queryset()` method (e.g. as described in https://docs.djangoproject.com/en/1.7/topics/db/multi-db/#exposing-multiple-databases-in-django-s-admin-interface to handle routing of models hosted in a multi-DB setup), displaying the change list works as expected.
    22
    3 But when usage of the `list_filter` feature is added, a DB error is generated reporting that no table object for the model a hand is found in the default Django DB.
     3But when usage of the `list_filter` feature is added, a DB error is generated reporting that no table object for the model at hand is found in the default Django DB.
    44
    55This is because the filter machinery doesn't use the custom ModelAdmin-dictated !QuerySet but the model's default manager `all()` method:
Back to Top