[patch] manage.py reset warning should be more specific
|Reported by:||pb@…||Owned by:||adrian|
|Component:||Core (Management commands)||Version:||master|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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.