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:
Adrian Holovaty 2006-01-21 05:37:25 +00:00
parent 2348f8fcef
commit f664a284e7
1 changed files with 1 additions and 1 deletions

View File

@ -509,7 +509,7 @@ def manipulator_validator_unique_for_date(from_field, date_field, opts, lookup_t
if lookup_type == 'date':
lookup_kwargs['%s__day' % date_field.name] = date_val.day
try:
old_obj = opts.model._default_manager.get_object(**lookup_kwargs)
old_obj = self.manager.get_object(**lookup_kwargs)
except ObjectDoesNotExist:
return
else: