From 8f91717c82f46021b8be38ab4f026352eb159fac Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Tue, 3 Oct 2006 13:58:33 +0000 Subject: [PATCH] Modified sql_index function names to match pattern established by initial_data functions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3894 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/management.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/django/core/management.py b/django/core/management.py index 1f2869addc..3173aef3e3 100644 --- a/django/core/management.py +++ b/django/core/management.py @@ -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)