Ticket #1413: model-import-error.diff
File model-import-error.diff, 735 bytes (added by , 19 years ago) |
---|
-
magic-removal/django/db/models/base.py
28 28 29 29 # Raise ImportError if this model isn't in INSTALLED_APPS. 30 30 if re.sub('\.models$', '', mod) not in settings.INSTALLED_APPS: 31 raise ImportError, "INSTALLED_APPS must contain %r in order for you to use this model." % mod31 raise ImportError, "INSTALLED_APPS must contain %r in order for you to use this model." % re.sub('\.models$', '', mod) 32 32 33 33 # Create the class. 34 34 new_class = type.__new__(cls, name, bases, {'__module__': mod})