mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	magic-removal: Fixed old-style DB API call in db.models.manipulators
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2262 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -154,7 +154,7 @@ class AutomaticManipulator(forms.Manipulator): | ||||
|                     if self.change: | ||||
|                         if rel_new_data[related.opts.pk.name][0]: | ||||
|                             try: | ||||
|                                 old_rel_obj = getattr(self.original_object, 'get_%s' % related.OLD_get_accessor_name() )(**{'%s__exact' % related.opts.pk.name: rel_new_data[related.opts.pk.attname][0]}) | ||||
|                                 old_rel_obj = getattr(self.original_object, related.get_accessor_name()).get(**{'%s__exact' % related.opts.pk.name: rel_new_data[related.opts.pk.attname][0]}) | ||||
|                             except ObjectDoesNotExist: | ||||
|                                 pass | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user