Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
@jacobian jacobian authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/models/manipulators.py
View
2  django/db/models/manipulators.py
@@ -286,7 +286,7 @@ def manipulator_validator_unique_together(field_name_list, opts, self, field_dat
# This is really not going to work for fields that have different
# form fields, e.g. DateTime.
# This validation needs to occur after html2python to be effective.
- field_val = all_data.get(f.attname, None)
+ field_val = all_data.get(f.name, None)
if field_val is None:
# This will be caught by another validator, assuming the field
# doesn't have blank=True.
Please sign in to comment.
Something went wrong with that request. Please try again.