mirror of
https://github.com/django/django.git
synced 2025-08-24 10:49:12 +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:
parent
9e4a9de0d5
commit
f93f58423a
@ -66,7 +66,6 @@ class AutomaticManipulator(Manipulator):
|
|||||||
|
|
||||||
def save(self, new_data):
|
def save(self, new_data):
|
||||||
add, change, opts, klass = self.add, self.change, self.opts, self.model
|
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.
|
# TODO: big cleanup when core fields go -> use recursive manipulators.
|
||||||
from django.utils.datastructures import DotExpandedDict
|
from django.utils.datastructures import DotExpandedDict
|
||||||
params = {}
|
params = {}
|
||||||
@ -203,7 +202,7 @@ class AutomaticManipulator(Manipulator):
|
|||||||
# If, in the change stage, all of the core fields were blank and
|
# If, in the change stage, all of the core fields were blank and
|
||||||
# the primary key (ID) was provided, delete the item.
|
# the primary key (ID) was provided, delete the item.
|
||||||
if change and all_cores_blank and old_rel_obj:
|
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))
|
self.fields_deleted.append('%s "%s"' % (related.opts.verbose_name, old_rel_obj))
|
||||||
|
|
||||||
# Save the order, if applicable.
|
# Save the order, if applicable.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user