| author | ymh <ymh.work@gmail.com> |
| Wed, 20 Jan 2010 00:34:04 +0100 | |
| changeset 0 | 0d40e90630ef |
| child 29 | cc9b7e14412b |
| permissions | -rw-r--r-- |
| 0 | 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') |