Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

magic-removal: Fixed #1361 -- Fixed old-style DB API usage in db/mode…

…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...
commit 5927af7465f84a85b5dc4993afada3c8ab599ed5 1 parent 7e70c7d
Adrian Holovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/models/manipulators.py
2  django/db/models/manipulators.py
View
@@ -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:
Please sign in to comment.
Something went wrong with that request. Please try again.