Skip to content
Browse files

Modified sql_index function names to match pattern established by ini…

…tial_data functions.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent f508777 commit 8f91717c82f46021b8be38ab4f026352eb159fac @freakboy3742 freakboy3742 committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 django/core/
6 django/core/
@@ -401,12 +401,12 @@ def get_sql_indexes(app):
from django.db import models
output = []
for model in models.get_models(app):
- output.extend(_get_sql_index(model))
+ output.extend(get_sql_indexes_for_model(model))
return output
get_sql_indexes.help_doc = "Prints the CREATE INDEX SQL statements for the given model module name(s)."
get_sql_indexes.args = APP_ARGS
-def _get_sql_index(model):
+def get_sql_indexes_for_model(model):
"Returns the CREATE INDEX SQL statements for a single model"
from django.db import backend
output = []
@@ -527,7 +527,7 @@ def syncdb(verbosity=1, interactive=True):
app_name = app.__name__.split('.')[-2]
for model in models.get_models(app):
if model in created_models:
- index_sql = _get_sql_index(model)
+ index_sql = get_sql_indexes_for_model(model)
if index_sql:
if verbosity >= 1:
print "Installing index for %s.%s model" % (app_name, model._meta.object_name)

0 comments on commit 8f91717

Please sign in to comment.
Something went wrong with that request. Please try again.