Exposing multiple db in admin interface is limited
|Reported by:||idle||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 5 years ago by russellm
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Summary changed from Exposing multiple db in admin interface is limited (list_filter support) to Exposing multiple db in admin interface is limited
- Triage Stage changed from Unreviewed to Someday/Maybe