Exposing multiple db in admin interface is limited
|Reported by:||idle sign||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Suppose I have Django driven site with two applications using two different dbs.
Documentation at http://docs.djangoproject.com/en/dev/topics/db/multi-db/ gives us an idea of how to expose multiple dbs to admin interface.
However four admin.ModelAdmin methods customized in the example do not handle list_filter option (so query hits the default db, and that rises an exception).
For now I've found only one working solution - using custom manager with overriden get_query_set() method.
Change History (5)
comment:1 Changed 7 years ago by
|Patch needs improvement:||unset|
|Summary:||Exposing multiple db in admin interface is limited (list_filter support) → Exposing multiple db in admin interface is limited|
|Triage Stage:||Unreviewed → Someday/Maybe|