﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
34880	Required a post_save_action hook to perform additional action in admin.	AjmalPonneth	AjmalPonneth	"We need to provide a post_save_action hook in ModelAdmin in order to perform additional actions after saving the object. This feature will be useful if we are sending webhooks, notifications, etc. Overriding ModelAdmin.save_model() is not possible if a m2m field is there.


{{{
    def post_save_action(request, obj):
        """"""
        Hook to perform an action after the 'Save' button has been pressed 
        when adding a new object.
        """"""
        pass


     ...
     self.save_model(request, new_object, form, not add)
     self.save_related(request, form, formsets, not add)
     self.post_save_action(request, new_object)
}}}

The method should call after the ModelAdmin.save_related() is completed.
 "	New feature	closed	contrib.admin	4.2	Normal	wontfix			Unreviewed	0	0	0	0	1	0
