mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed #2932 -- Added more details to the warning message in 'manage.py reset'. Thanks for the patch, pb@e-scribe.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3932 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -627,6 +627,7 @@ install.args = APP_ARGS | ||||
| def reset(app, interactive=True): | ||||
|     "Executes the equivalent of 'get_sql_reset' in the current database." | ||||
|     from django.db import connection, transaction | ||||
|     from django.conf import settings | ||||
|     app_name = app.__name__.split('.')[-2] | ||||
|  | ||||
|     disable_termcolors() | ||||
| @@ -638,10 +639,11 @@ def reset(app, interactive=True): | ||||
|     if interactive: | ||||
|         confirm = raw_input(""" | ||||
| You have requested a database reset. | ||||
| This will IRREVERSIBLY DESTROY any data in your database. | ||||
| This will IRREVERSIBLY DESTROY any data for | ||||
| the "%s" application in the database "%s". | ||||
| Are you sure you want to do this? | ||||
|  | ||||
| Type 'yes' to continue, or 'no' to cancel: """) | ||||
| Type 'yes' to continue, or 'no' to cancel: """ % (app_name, settings.DATABASE_NAME)) | ||||
|     else: | ||||
|         confirm = 'yes' | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user