mirror of
https://github.com/django/django.git
synced 2025-10-25 14:46:09 +00:00
Fixed #7589 -- Added a way for post-table-creation SQL modifications to be done for custom fields (needed by geo-django, but useful in other situations, too).
Patch from Justin Bronn. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8133 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -116,7 +116,7 @@ class Command(NoArgsCommand):
|
||||
app_name = app.__name__.split('.')[-2]
|
||||
for model in models.get_models(app):
|
||||
if model in created_models:
|
||||
custom_sql = custom_sql_for_model(model)
|
||||
custom_sql = custom_sql_for_model(model, self.style)
|
||||
if custom_sql:
|
||||
if verbosity >= 1:
|
||||
print "Installing custom SQL for %s.%s model" % (app_name, model._meta.object_name)
|
||||
|
||||
Reference in New Issue
Block a user