web/lib/django/core/management/commands/sqlflush.py
changeset 0 0d40e90630ef
child 29 cc9b7e14412b
equal deleted inserted replaced
-1:000000000000 0:0d40e90630ef
       
     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 u'\n'.join(sql_flush(self.style, only_django=True)).encode('utf-8')