Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #3905 -- Report app_name correctly in errors during custom SQL

installation. Thanks, kbussell@gmail.com.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@5131 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit acde998521e859f6bc7c8d2047d2bfbe2bca15ed 1 parent 157ade3
Malcolm Tredinnick authored May 01, 2007

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  django/core/management.py
1  django/core/management.py
@@ -539,6 +539,7 @@ def syncdb(verbosity=1, interactive=True):
539 539
     # Install custom SQL for the app (but only if this
540 540
     # is a model we've just created)
541 541
     for app in models.get_apps():
  542
+        app_name = app.__name__.split('.')[-2]
542 543
         for model in models.get_models(app):
543 544
             if model in created_models:
544 545
                 custom_sql = get_custom_sql_for_model(model)

0 notes on commit acde998

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