Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #1021: unique_together should now get validated correctly. Than…

…ks, wam@cisco.com

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4028 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b6a17893308a5bced876f042fb67fb8358e24949 1 parent 46b0713
Jacob Kaplan-Moss authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/db/models/manipulators.py
2  django/db/models/manipulators.py
@@ -286,7 +286,7 @@ def manipulator_validator_unique_together(field_name_list, opts, self, field_dat
286 286
         # This is really not going to work for fields that have different
287 287
         # form fields, e.g. DateTime.
288 288
         # 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)
290 290
         if field_val is None:
291 291
             # This will be caught by another validator, assuming the field
292 292
             # doesn't have blank=True.

0 notes on commit b6a1789

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