1
0
mirror of https://github.com/django/django.git synced 2025-07-04 09:49:12 +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:
Justin Bronn 2007-09-20 13:13:18 +00:00
parent 7376474260
commit e95fda3e26
2 changed files with 2 additions and 2 deletions

View File

@ -7,4 +7,4 @@ class Command(AppCommand):
def handle_app(self, app, **options): def handle_app(self, app, **options):
from django.core.management.sql import sql_custom from django.core.management.sql import sql_custom
return '\n'.join(sql_custom(app)) return '\n'.join(sql_custom(app, self.style))

View File

@ -238,7 +238,7 @@ def sql_indexes(app, style):
def sql_all(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." "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()): def sql_model_create(model, style, known_models=set()):
""" """