magic-removal: Fixed #1361 -- Fixed old-style DB API usage in db/models/manipulators.py. Thanks, Ian Holsman

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2318 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-02-17 17:31:48 +00:00
parent 7e70c7dacc
commit 5927af7465
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,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 = self.manager.get_object(**lookup_kwargs)
old_obj = self.manager.get(**lookup_kwargs)
except ObjectDoesNotExist:
return
else: