I have UpdateView in Django.
I only have a regular submit button. When an object is updated correctly, it is redirected to the list of objects through success_url.
Can I create two different submit buttons: one button that sends and redirects to the object list page (ListView) and another button that sends and redirects to the object details page (DetailView)?
I do not know how to do this in a smart way.
source
share