Haki Benita
1 min readApr 22, 2018

--

Hey,

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.

--

--

Haki Benita
Haki Benita

Written by Haki Benita

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

No responses yet