Skip to content

Commit

Permalink
magic-removal: Fixed #1361 -- Fixed old-style DB API usage in db/mode…
Browse files Browse the repository at this point in the history
…ls/manipulators.py. Thanks, Ian Holsman

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2318 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Feb 17, 2006
1 parent 7e70c7d commit 5927af7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/db/models/manipulators.py
Expand Up @@ -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:
Expand Down

0 comments on commit 5927af7

Please sign in to comment.