From f93f58423af2c60ca5b1e8060c80f07e65ce6535 Mon Sep 17 00:00:00 2001 From: Robert Wittams Date: Fri, 16 Dec 2005 23:26:02 +0000 Subject: [PATCH] Added python 2.3 fallback git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1710 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/models/manipulators.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/django/db/models/manipulators.py b/django/db/models/manipulators.py index d7104a5bfc..eb7ee13825 100644 --- a/django/db/models/manipulators.py +++ b/django/db/models/manipulators.py @@ -66,7 +66,6 @@ class AutomaticManipulator(Manipulator): def save(self, new_data): add, change, opts, klass = self.add, self.change, self.opts, self.model - print add, change, opts, klass # TODO: big cleanup when core fields go -> use recursive manipulators. from django.utils.datastructures import DotExpandedDict params = {} @@ -203,7 +202,7 @@ class AutomaticManipulator(Manipulator): # If, in the change stage, all of the core fields were blank and # the primary key (ID) was provided, delete the item. if change and all_cores_blank and old_rel_obj: - new_rel_obj.delete() + new_rel_obj.delete(ignore_objects=[new_object]) self.fields_deleted.append('%s "%s"' % (related.opts.verbose_name, old_rel_obj)) # Save the order, if applicable.