app/django/core/management/commands/sqlflush.py
changeset 54 03e267d67478
child 323 ff1a9aa48cfd
equal deleted inserted replaced
53:57b4279d8c4e 54:03e267d67478
       
     1 from django.core.management.base import NoArgsCommand
       
     2 
       
     3 class Command(NoArgsCommand):
       
     4     help = "Returns a list of the SQL statements required to return all tables in the database to the state they were in just after they were installed."
       
     5 
       
     6     output_transaction = True
       
     7 
       
     8     def handle_noargs(self, **options):
       
     9         from django.core.management.sql import sql_flush
       
    10         return '\n'.join(sql_flush(self.style, only_django=True))