magic-removal: Fixed bug in manipulator_validator_unique_for_date
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2092 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
2348f8fcef
commit
f664a284e7
|
@ -509,7 +509,7 @@ def manipulator_validator_unique_for_date(from_field, date_field, opts, lookup_t
|
||||||
if lookup_type == 'date':
|
if lookup_type == 'date':
|
||||||
lookup_kwargs['%s__day' % date_field.name] = date_val.day
|
lookup_kwargs['%s__day' % date_field.name] = date_val.day
|
||||||
try:
|
try:
|
||||||
old_obj = opts.model._default_manager.get_object(**lookup_kwargs)
|
old_obj = self.manager.get_object(**lookup_kwargs)
|
||||||
except ObjectDoesNotExist:
|
except ObjectDoesNotExist:
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue