changeset 54 | 03e267d67478 |
child 323 | ff1a9aa48cfd |
53:57b4279d8c4e | 54:03e267d67478 |
---|---|
1 from django.core.management.base import AppCommand |
|
2 |
|
3 class Command(AppCommand): |
|
4 help = "Prints the DROP TABLE SQL, then the CREATE TABLE SQL, for the given app name(s)." |
|
5 |
|
6 output_transaction = True |
|
7 |
|
8 def handle_app(self, app, **options): |
|
9 from django.core.management.sql import sql_reset |
|
10 return '\n'.join(sql_reset(app, self.style)) |