Ticket #2932: reset.diff
File reset.diff, 957 bytes (added by , 18 years ago) |
---|
-
django/core/management.py
627 627 def reset(app, interactive=True): 628 628 "Executes the equivalent of 'get_sql_reset' in the current database." 629 629 from django.db import connection, transaction 630 from django.conf import settings 630 631 app_name = app.__name__.split('.')[-2] 631 632 632 633 disable_termcolors() … … 638 639 if interactive: 639 640 confirm = raw_input(""" 640 641 You have requested a database reset. 641 This will IRREVERSIBLY DESTROY any data in your database. 642 This will IRREVERSIBLY DESTROY any data for 643 the "%s" application in the database "%s". 642 644 Are you sure you want to do this? 643 645 644 Type 'yes' to continue, or 'no' to cancel: """ )646 Type 'yes' to continue, or 'no' to cancel: """ % (app_name, settings.DATABASE_NAME)) 645 647 else: 646 648 confirm = 'yes'