1
0
mirror of https://github.com/django/django.git synced 2024-12-25 10:35:48 +00:00

Fixed #6011 -- Improved help text for flush command. Thanks Julien for the patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16877 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Paul McMillan 2011-09-22 05:21:51 +00:00
parent f44c4a5d0f
commit d0979a5faf

View File

@ -17,7 +17,10 @@ class Command(NoArgsCommand):
default=DEFAULT_DB_ALIAS, help='Nominates a database to flush. ' default=DEFAULT_DB_ALIAS, help='Nominates a database to flush. '
'Defaults to the "default" database.'), 'Defaults to the "default" database.'),
) )
help = "Executes ``sqlflush`` on the current database." help = ('Returns the database to the state it was in immediately after '
'syncdb was executed. This means that all data will be removed '
'from the database, any post-synchronization handlers will be '
're-executed, and the initial_data fixture will be re-installed.')
def handle_noargs(self, **options): def handle_noargs(self, **options):
db = options.get('database', DEFAULT_DB_ALIAS) db = options.get('database', DEFAULT_DB_ALIAS)