1
0
mirror of https://github.com/django/django.git synced 2025-10-28 08:06:09 +00:00

Refs #23621 -- Fixed warning message when reloading models.

This commit is contained in:
Marten Kenbeek
2015-06-30 20:38:07 +02:00
committed by Tim Graham
parent 00a1d4d042
commit aabb58428b
2 changed files with 2 additions and 2 deletions

View File

@@ -208,7 +208,7 @@ class Apps(object):
warnings.warn(
"Model '%s.%s' was already registered. "
"Reloading models is not advised as it can lead to inconsistencies, "
"most notably with related models." % (model_name, app_label),
"most notably with related models." % (app_label, model_name),
RuntimeWarning, stacklevel=2)
else:
raise RuntimeError(