app/django/core/management/commands/sqlindexes.py
author Pawel Solyga <Pawel.Solyga@gmail.com>
Thu, 11 Sep 2008 11:56:24 +0000
changeset 126 6186c115a210
parent 54 03e267d67478
child 323 ff1a9aa48cfd
permissions -rw-r--r--
Added TinyMCE to Melange in soc/content/js Patch by: Pawel Solyga Review by: to-be-reviewed

from django.core.management.base import AppCommand

class Command(AppCommand):
    help = "Prints the CREATE INDEX SQL statements for the given model module name(s)."

    output_transaction = True

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