mirror of
https://github.com/django/django.git
synced 2025-06-06 20:19:13 +00:00
Fixed #1021: unique_together should now get validated correctly. Thanks, wam@cisco.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4028 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
46b0713315
commit
b6a1789330
@ -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
|
# This is really not going to work for fields that have different
|
||||||
# form fields, e.g. DateTime.
|
# form fields, e.g. DateTime.
|
||||||
# This validation needs to occur after html2python to be effective.
|
# 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:
|
if field_val is None:
|
||||||
# This will be caught by another validator, assuming the field
|
# This will be caught by another validator, assuming the field
|
||||||
# doesn't have blank=True.
|
# doesn't have blank=True.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user