Ticket #5848: 5848.core.management.commands.flush.diff
File 5848.core.management.commands.flush.diff, 1.0 KB (added by , 17 years ago) |
---|
-
django/core/management/commands/flush.py
2 2 from django.core.management.color import no_style 3 3 from optparse import make_option 4 4 5 try: 6 set 7 except NameError: 8 from sets import Set as set # Python 2.3 fallback 9 5 10 class Command(NoArgsCommand): 6 11 option_list = NoArgsCommand.option_list + ( 7 12 make_option('--verbosity', action='store', dest='verbosity', default='1', … … 61 66 # Emit the post sync signal. This allows individual 62 67 # applications to respond as if the database had been 63 68 # sync'd from scratch. 64 emit_post_sync_signal( models.get_models(), verbosity, interactive)69 emit_post_sync_signal(set(models.get_models()), verbosity, interactive) 65 70 66 71 # Reinstall the initial_data fixture. 67 72 from django.core.management import call_command