Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Modified sql_index function names to match pattern established by ini…

…tial_data functions.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3894 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 8f91717c82f46021b8be38ab4f026352eb159fac 1 parent f508777
Russell Keith-Magee authored October 03, 2006

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  django/core/management.py
6  django/core/management.py
@@ -401,12 +401,12 @@ def get_sql_indexes(app):
401 401
     from django.db import models
402 402
     output = []
403 403
     for model in models.get_models(app):
404  
-        output.extend(_get_sql_index(model))
  404
+        output.extend(get_sql_indexes_for_model(model))
405 405
     return output
406 406
 get_sql_indexes.help_doc = "Prints the CREATE INDEX SQL statements for the given model module name(s)."
407 407
 get_sql_indexes.args = APP_ARGS
408 408
 
409  
-def _get_sql_index(model):
  409
+def get_sql_indexes_for_model(model):
410 410
     "Returns the CREATE INDEX SQL statements for a single model"
411 411
     from django.db import backend
412 412
     output = []
@@ -527,7 +527,7 @@ def syncdb(verbosity=1, interactive=True):
527 527
         app_name = app.__name__.split('.')[-2]
528 528
         for model in models.get_models(app):
529 529
             if model in created_models:
530  
-                index_sql = _get_sql_index(model)
  530
+                index_sql = get_sql_indexes_for_model(model)
531 531
                 if index_sql:
532 532
                     if verbosity >= 1:
533 533
                         print "Installing index for %s.%s model" % (app_name, model._meta.object_name)

0 notes on commit 8f91717

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