Ticket #13950: post-save.diff
File post-save.diff, 966 bytes (added by , 14 years ago) |
---|
-
django/contrib/admin/options.py
798 798 self.save_formset(request, form, formset, change=False) 799 799 800 800 self.log_addition(request, new_object) 801 if hasattr(self, "post_save"): 802 self.post_save(new_object) 801 803 return self.response_add(request, new_object) 802 804 else: 803 805 # Prepare the dict of initial data from the request. … … 899 901 900 902 change_message = self.construct_change_message(request, form, formsets) 901 903 self.log_change(request, new_object, change_message) 904 if hasattr(self, "post_save"): 905 self.post_save(new_object) 902 906 return self.response_change(request, new_object) 903 907 904 908 else: