2007-08-16 22:34:01 +08:00
|
|
|
from django.core.management.base import NoArgsCommand
|
2007-08-16 14:06:55 +08:00
|
|
|
|
2007-08-16 22:34:01 +08:00
|
|
|
class Command(NoArgsCommand):
|
2007-08-16 14:06:55 +08:00
|
|
|
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."
|
|
|
|
|
|
|
|
output_transaction = True
|
|
|
|
|
2007-08-16 22:34:01 +08:00
|
|
|
def handle_noargs(self, **options):
|
2007-08-16 14:06:55 +08:00
|
|
|
from django.core.management.sql import sql_flush
|
2007-08-26 03:32:30 +08:00
|
|
|
return '\n'.join(sql_flush(self.style, only_django=True))
|