Ticket #2207: add_change_manipulators_patch.diff
File add_change_manipulators_patch.diff, 1.2 KB (added by , 18 years ago) |
---|
-
django/db/models/manipulators.py
230 230 order = new_data['order_'] and map(int, new_data['order_'].split(',')) or [] 231 231 for rel_opts in self.opts.get_ordered_objects(): 232 232 getattr(new_object, 'set_%s_order' % rel_opts.object_name.lower())(order) 233 234 manipulator_signal = self.change and signals.post_change_manipulator_save or signals.post_add_manipulator_save 235 dispatcher.send(signal=manipulator_signal, sender=self.__class__, instance=new_object) 233 236 return new_object 234 237 235 238 def get_related_objects(self): -
django/db/models/signals.py
6 6 pre_save = object() 7 7 post_save = object() 8 8 9 post_add_manipulator_save = object() 10 post_change_manipulator_save = object() 11 9 12 pre_delete = object() 10 13 post_delete = object() 11 14 12 15 post_syncdb = object() 16