Permalink
Browse files

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
  • Loading branch information...
adrianholovaty committed Jan 21, 2006
1 parent 2348f8f commit f664a284e7968138a82a2321ef770ea4248c54d9
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/db/models/manipulators.py
@@ -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:

0 comments on commit f664a28

Please sign in to comment.