From f664a284e7968138a82a2321ef770ea4248c54d9 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Sat, 21 Jan 2006 05:37:25 +0000 Subject: [PATCH] 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 --- django/db/models/manipulators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/models/manipulators.py b/django/db/models/manipulators.py index d1ced1895a..06f31d8dc7 100644 --- a/django/db/models/manipulators.py +++ b/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: