app/django/core/management/commands/sqlclear.py
author Todd Larsen <tlarsen@google.com>
Tue, 26 Aug 2008 21:05:43 +0000
changeset 102 a2d3ac82142f
parent 54 03e267d67478
child 323 ff1a9aa48cfd
permissions -rw-r--r--
Third-party packages that do not need to be part of trunk/app (because they are not part of a Google App Engine image upload).

from django.core.management.base import AppCommand

class Command(AppCommand):
    help = "Prints the DROP TABLE SQL statements for the given app name(s)."

    output_transaction = True

    def handle_app(self, app, **options):
        from django.core.management.sql import sql_delete
        return '\n'.join(sql_delete(app, self.style))