From cb829267b83d4bc5db0e7c93fc5c78feea2a6c25 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Tue, 26 Sep 2006 12:55:44 +0000 Subject: [PATCH] Corrected line that was somehow merged out prior to committing changeset [3858]. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3859 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/models/manipulators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/models/manipulators.py b/django/db/models/manipulators.py index daca9d7105..83ddda844e 100644 --- a/django/db/models/manipulators.py +++ b/django/db/models/manipulators.py @@ -218,7 +218,7 @@ class AutomaticManipulator(forms.Manipulator): new_value = rel_new_data[f.attname] if f.rel.raw_id_admin: new_value = new_value[0] - setattr(new_rel_obj, f.name, f.rel.to.objects.filter(pk__in=rel_new_data[f.attname])) + setattr(new_rel_obj, f.name, f.rel.to.objects.filter(pk__in=new_value)) if self.change: self.fields_changed.append('%s for %s "%s"' % (f.verbose_name, related.opts.verbose_name, new_rel_obj))