Django

Code

Changeset 4028

Show
Ignore:
Timestamp:
11/06/06 16:51:00 (2 years ago)
Author:
jacob
Message:

Fixed #1021: unique_together should now get validated correctly. Thanks, wam@cisco.com

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/db/models/manipulators.py

    r3949 r4028  
    287287        # form fields, e.g. DateTime. 
    288288        # This validation needs to occur after html2python to be effective. 
    289         field_val = all_data.get(f.attname, None) 
     289        field_val = all_data.get(f.name, None) 
    290290        if field_val is None: 
    291291            # This will be caught by another validator, assuming the field