Django

Code

Changeset 8697

Show
Ignore:
Timestamp:
08/29/08 10:45:23 (3 months ago)
Author:
jacob
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/core/management/validation.py

    r8488 r8697  
    132132                            if rel_to == from_model: 
    133133                                if seen_from: 
    134                                     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)) 
     134                                    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)) 
    135135                                else: 
    136136                                    seen_from = True