web/lib/django/core/management/commands/sqlcustom.py
author ymh <ymh.work@gmail.com>
Fri, 29 Jan 2010 05:14:15 +0100
changeset 17 dc40652282ad
parent 0 0d40e90630ef
child 29 cc9b7e14412b
permissions -rw-r--r--
Added tag V00.06 for changeset 146d86480e85

from django.core.management.base import AppCommand

class Command(AppCommand):
    help = "Prints the custom table modifying SQL statements for the given app name(s)."

    output_transaction = True

    def handle_app(self, app, **options):
        from django.core.management.sql import sql_custom
        return u'\n'.join(sql_custom(app, self.style)).encode('utf-8')