admin | Incomplete behavior of unregister() | unregistering foo.Bar and registering refoo.Bar with app_label results in original foo.Bar
|Reported by:||subsume||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Description (last modified by Alex)
I have app 'agency' which has model Settings and with an admin which registers it. This serves as a default.
I attempted to override these settings in the admin of another project's 'agency_local' app. Steps I took:
- unregister agency.Settings in agency_local.admin
- register agency_local.Settings # works ok, but in admin it shows up under Agency_local list
- added "agency" as 'app_label' to agency_local.Settings # results in the original unregistered settings showing up again!