Opened 18 years ago
Closed 18 years ago
#2932 closed enhancement (fixed)
[patch] manage.py reset warning should be more specific
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Core (Management commands) | Version: | dev |
Severity: | minor | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The warning prompt that you get from manage.py reset
currently reads:
You have requested a database reset. This will IRREVERSIBLY DESTROY any data in your database. Are you sure you want to do this?
This patch makes a small change to this function so that it identifies what application and database are being affected. The new wording (assuming an app named "catalog" and a db named "store") looks like this:
You have requested a database reset. This will IRREVERSIBLY DESTROY any data for the "catalog" application in the database "store". Are you sure you want to do this?
When jumping between multiple Django projects in development on the same server I found I was wanting this reminder, particularly the name of the database, as a sanity check. I added the app name mostly for accuracy -- the current warning makes it sound like the whole database will be wiped out, which isn't true.
Attachments (1)
Change History (2)
by , 18 years ago
Attachment: | reset.diff added |
---|
comment:1 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
management.py patch