Code

Opened 7 years ago

Closed 4 years ago

#5065 closed (wontfix)

Add a post_reset signal to "manage.py reset <app>"

Reported by: gav@… Owned by: nobody
Component: Core (Other) Version: master
Severity: Keywords: post_syncdb post_reset reset management.py
Cc: mmitar@… Triage Stage: Design decision needed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Currently, there's no equivalent signal to syncdb's post_syncdb for reset. Since reset re-creates a given app's DB elements, it would be useful to be able to perform a subset of the similar types of activities that are done with post_syncdb.

Also, this models the way that all apps are polled for their management.py during syncdb, in case resetting one app has effects on other apps that should be handled via the signal.

Attachments (1)

post_reset_signal.patch (2.2 KB) - added by gav@… 7 years ago.
Patch that provides post_reset signal against r5788.

Download all attachments as: .zip

Change History (5)

Changed 7 years ago by gav@…

Patch that provides post_reset signal against r5788.

comment:1 Changed 7 years ago by mir

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Design decision needed

comment:2 Changed 5 years ago by tobias

Would love to see this implemented

comment:3 Changed 4 years ago by mitar

  • Cc mmitar@… added

+1

comment:4 Changed 4 years ago by russellm

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

Wontfix; We're going to deprecate reset/sqlreset because it's fundamentally broken. See #14268

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.