mirror of
https://github.com/django/django.git
synced 2025-07-04 01:39:20 +00:00
gis: fixed sqlall and sqlcustom commands for this branch.
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@6395 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
7376474260
commit
e95fda3e26
@ -7,4 +7,4 @@ class Command(AppCommand):
|
||||
|
||||
def handle_app(self, app, **options):
|
||||
from django.core.management.sql import sql_custom
|
||||
return '\n'.join(sql_custom(app))
|
||||
return '\n'.join(sql_custom(app, self.style))
|
||||
|
@ -238,7 +238,7 @@ def sql_indexes(app, style):
|
||||
|
||||
def sql_all(app, style):
|
||||
"Returns a list of CREATE TABLE SQL, initial-data inserts, and CREATE INDEX SQL for the given module."
|
||||
return sql_create(app, style) + sql_custom(app) + sql_indexes(app, style)
|
||||
return sql_create(app, style) + sql_custom(app, style) + sql_indexes(app, style)
|
||||
|
||||
def sql_model_create(model, style, known_models=set()):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user