Opened 15 years ago
Last modified 15 years ago
#13395 closed
admin | Incomplete behavior of unregister() | unregistering foo.Bar and registering refoo.Bar with app_label results in original foo.Bar — at Initial Version
Reported by: | Yeago | Owned by: | nobody |
---|---|---|---|
Component: | Contrib apps | Version: | 1.2-beta |
Severity: | Keywords: | admin unregister | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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!