Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #8687, a bad variable name in validation. Thanks, vung.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8697 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b5da9e8b2df6d001cfed5cec171011336f15b281 1 parent 7f05555
@jacobian jacobian authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/core/management/validation.py
View
2  django/core/management/validation.py
@@ -131,7 +131,7 @@ def get_validation_errors(outfile, app=None):
else:
if rel_to == from_model:
if seen_from:
- e.add(opts, "Intermediary model %s has more than one foreign key to %s, which is ambiguous and is not permitted." % (f.rel.through_model._meta.object_name, rel_from._meta.object_name))
+ e.add(opts, "Intermediary model %s has more than one foreign key to %s, which is ambiguous and is not permitted." % (f.rel.through_model._meta.object_name, from_model._meta.object_name))
else:
seen_from = True
elif rel_to == to_model:

0 comments on commit b5da9e8

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