Code

Opened 6 years ago

Closed 6 years ago

Last modified 3 years ago

#8282 closed (duplicate)

admin models not properly unregistered when having exceptions in admin.py (using django development server)

Reported by: ask@… Owned by: nobody
Component: contrib.admin Version: 1.0-alpha
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

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.

Attachments (0)

Change History (3)

comment:1 Changed 6 years ago by julianb

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 6 years ago by julien

  • Resolution set to duplicate
  • Status changed from new to closed

#8245 reports the same issue and has a patch.

comment:3 Changed 3 years ago by jacob

  • milestone 1.0 deleted

Milestone 1.0 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.