Django admin uses default Manager
|Reported by:||Alasdair <alasdair@…>||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I've defined a custom manager for my Entry model:
Class Entry(models.Model): [snip...] live = LiveEntryManager() objects = models.Manager()
The documentation says:
"Django interprets this first Manager defined in a class as the "default" Manager, and several parts of Django (though not the admin application) will use that Manager exclusively for that model."
which I understand to mean that the admin will continue to use models.Manager. However the admin appears to use the LiveEntryManager. It is not clear how I can get the admin application to use models.Manager, and display all Entries.
Apologies if I've misunderstood the documentation.