admin models not properly unregistered when having exceptions in admin.py (using django development server)
If duing development one makes codeing errors in admin.py, the development server will require a full restart before functioning properly.
Reason is that models registered to newforms-admin before the exception occours will still be registered and models unregistered (but not reregistered) before the exception, will not be registered.
This will cause allready registered exceptions for every registration and not registered exceptions for unregistrations.
Fix: Django needs to do proper cleanup upon exceptions.
Change History
(3)
Triage Stage: |
Unreviewed → Accepted
|
Resolution: |
→ duplicate
|
Status: |
new → closed
|
#8245 reports the same issue and has a patch.