1
0
mirror of https://github.com/django/django.git synced 2025-06-13 23:49:13 +00:00

Added python 2.3 fallback

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1710 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Robert Wittams 2005-12-16 23:26:02 +00:00
parent 9e4a9de0d5
commit f93f58423a

View File

@ -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.