Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/db/models/manipulators.py
2  django/db/models/manipulators.py
@@ -318,7 +318,7 @@ def manipulator_validator_unique_for_date(from_field, date_field, opts, lookup_t
318 318
     if lookup_type == 'date':
319 319
         lookup_kwargs['%s__day' % date_field.name] = date_val.day
320 320
     try:
321  
-        old_obj = self.manager.get_object(**lookup_kwargs)
  321
+        old_obj = self.manager.get(**lookup_kwargs)
322 322
     except ObjectDoesNotExist:
323 323
         return
324 324
     else:

0 notes on commit 5927af7

Please sign in to comment.
Something went wrong with that request. Please try again.