diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2006-11-06 22:51:00 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2006-11-06 22:51:00 +0000 |
| commit | b6a17893308a5bced876f042fb67fb8358e24949 (patch) | |
| tree | 600bfc382d4333e1bf83f5767ad3b5ec95e94b12 | |
| parent | 46b0713315020d63fa8ce7c4ea14d99daf256e47 (diff) | |
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
| -rw-r--r-- | django/db/models/manipulators.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/manipulators.py b/django/db/models/manipulators.py index 9a898e217f..c61e82f813 100644 --- a/django/db/models/manipulators.py +++ b/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. |
