Author: jbronn
Date: 2007-09-20 08:13:18 -0500 (Thu, 20 Sep 2007)
New Revision: 6395
Modified:
django/branches/gis/django/core/management/commands/sqlcustom.py
django/branches/gis/django/core/management/sql.py
Log:
gis: fixed sqlall and sqlcustom commands for this branch.
Modified: django/branches/gis/django/core/management/commands/sqlcustom.py
===================================================================
--- django/branches/gis/django/core/management/commands/sqlcustom.py
2007-09-20 13:02:11 UTC (rev 6394)
+++ django/branches/gis/django/core/management/commands/sqlcustom.py
2007-09-20 13:13:18 UTC (rev 6395)
@@ -7,4 +7,4 @@
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))
Modified: django/branches/gis/django/core/management/sql.py
===================================================================
--- django/branches/gis/django/core/management/sql.py 2007-09-20 13:02:11 UTC
(rev 6394)
+++ django/branches/gis/django/core/management/sql.py 2007-09-20 13:13:18 UTC
(rev 6395)
@@ -238,7 +238,7 @@
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()):
"""
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---