diff -r 000000000000 -r 0d40e90630ef web/lib/django/core/management/commands/sqlreset.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/lib/django/core/management/commands/sqlreset.py Wed Jan 20 00:34:04 2010 +0100 @@ -0,0 +1,10 @@ +from django.core.management.base import AppCommand + +class Command(AppCommand): + help = "Prints the DROP TABLE SQL, then the CREATE TABLE SQL, for the given app name(s)." + + output_transaction = True + + def handle_app(self, app, **options): + from django.core.management.sql import sql_reset + return u'\n'.join(sql_reset(app, self.style)).encode('utf-8')