1) In the process_action method how did you come with `admin:account_account_change` as the first arg to reverse()

You can read in the documentation about howe to reverse admin urls.

2) What is the form_action method suppose to return?

As mentioned in the previous response, the process action hook returns a response. In my example the process_action hook returns a response based on the outcome of the action. If the action succeeded i’m returning a redirect response to the object’s change view. If the action failed i’m retuning a response to the action page with the form errors.

Full Stack Developer, Team Leader, Independent. More from me at https://hakibenita.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store