app/django/core/management/commands/sqlindexes.py
author Todd Larsen <tlarsen@google.com>
Fri, 03 Oct 2008 21:59:32 +0000
changeset 267 0c008a43443b
parent 54 03e267d67478
child 323 ff1a9aa48cfd
permissions -rw-r--r--
Replace soc/views/helpers/request_helpers with soc/views/helpers/request.py and replace uses of request_helpers. with helpers.request. instead. Patch by: Todd Larsen 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))