Loading django/db/models/base.py +4 −6 Original line number Diff line number Diff line Loading @@ -100,12 +100,10 @@ class ModelBase(type): msg = ( "Model class %s.%s doesn't declare an explicit app_label " "and either isn't in an application in INSTALLED_APPS or " "else was imported before its application was loaded. " % "else was imported before its application was loaded. " "This will no longer be supported in Django 1.9." % (module, name)) if abstract: msg += "Its app_label will be set to None in Django 1.9." else: msg += "This will no longer be supported in Django 1.9." if not abstract: warnings.warn(msg, RemovedInDjango19Warning, stacklevel=2) model_module = sys.modules[new_class.__module__] Loading Loading
django/db/models/base.py +4 −6 Original line number Diff line number Diff line Loading @@ -100,12 +100,10 @@ class ModelBase(type): msg = ( "Model class %s.%s doesn't declare an explicit app_label " "and either isn't in an application in INSTALLED_APPS or " "else was imported before its application was loaded. " % "else was imported before its application was loaded. " "This will no longer be supported in Django 1.9." % (module, name)) if abstract: msg += "Its app_label will be set to None in Django 1.9." else: msg += "This will no longer be supported in Django 1.9." if not abstract: warnings.warn(msg, RemovedInDjango19Warning, stacklevel=2) model_module = sys.modules[new_class.__module__] Loading