Ticket #1075: edit_inline_bug_fix.diff
File edit_inline_bug_fix.diff, 930 bytes (added by , 19 years ago) |
---|
-
__init__.py
1768 1768 1769 1769 if change: 1770 1770 params[opts.pk.attname] = self.obj_key 1771 1771 1772 1772 # First, save the basic object itself. 1773 1773 new_object = klass(**params) 1774 1774 new_object.save() … … 1809 1809 if child_follow: 1810 1810 obj_list = expanded_data[related.var_name].items() 1811 1811 obj_list.sort(lambda x, y: cmp(int(x[0]), int(y[0]))) 1812 params = {}1813 1812 1814 1813 # For each related item... 1815 1814 for _, rel_new_data in obj_list: 1816 1815 params = {} 1817 1816 # Keep track of which core=True fields were provided. 1818 1817 # If all core fields were given, the related object will be saved. 1819 1818 # If none of the core fields were given, the object will be deleted.