diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-05-01 02:44:24 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-05-01 02:44:24 +0000 |
| commit | acde998521e859f6bc7c8d2047d2bfbe2bca15ed (patch) | |
| tree | 9ffeb4487ba8d4f943445c771fbb97363e1a6c13 | |
| parent | 157ade371be84154f2ce465793531c72d82ecada (diff) | |
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
| -rw-r--r-- | django/core/management.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/core/management.py b/django/core/management.py index 4e6a5f45b3..b086663002 100644 --- a/django/core/management.py +++ b/django/core/management.py @@ -539,6 +539,7 @@ def syncdb(verbosity=1, interactive=True): # Install custom SQL for the app (but only if this # is a model we've just created) for app in models.get_apps(): + app_name = app.__name__.split('.')[-2] for model in models.get_models(app): if model in created_models: custom_sql = get_custom_sql_for_model(model) |
