1
from django.core.management.base import NoArgsCommand
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."
6
output_transaction = True
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')