diff options
Diffstat (limited to 'django/db/models/manipulators.py')
| -rw-r--r-- | django/db/models/manipulators.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/django/db/models/manipulators.py b/django/db/models/manipulators.py index 2d953260fb..4e6ddca26e 100644 --- a/django/db/models/manipulators.py +++ b/django/db/models/manipulators.py @@ -120,10 +120,7 @@ class AutomaticManipulator(oldforms.Manipulator): for f in self.opts.many_to_many: if self.follow.get(f.name, None): if not f.rel.edit_inline: - if f.rel.raw_id_admin: - new_vals = new_data.get(f.name, ()) - else: - new_vals = new_data.getlist(f.name) + new_vals = new_data.getlist(f.name) # First, clear the existing values. rel_manager = getattr(new_object, f.name) rel_manager.clear() @@ -220,8 +217,6 @@ class AutomaticManipulator(oldforms.Manipulator): for f in related.opts.many_to_many: if child_follow.get(f.name, None) and not f.rel.edit_inline: 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=new_value)) if self.change: self.fields_changed.append('%s for %s "%s"' % (f.verbose_name, related.opts.verbose_name, new_rel_obj)) |
