Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

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

installation. Thanks,

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit acde998521e859f6bc7c8d2047d2bfbe2bca15ed 1 parent 157ade3
@malcolmt malcolmt authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  django/core/
1  django/core/
@@ -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)

0 comments on commit acde998

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