How can I specify custom url where the user is redirected when flow ends in flow.End()
?
I tried to pass custom views with overridden get_success_url()
to End node, but it was not working.
flows.py
end = flow.End(
cancel_view=views.WeightTicketEndCancelView,
detail_view=views.WeightTicketEndDetailView,
undo_view=views.WeightTicketEndUndoView,
perform_view=views.WeightTicketEndPerformView,
view_or_class=views.WeightTicketEndView,
)
views.py
class WeightTicketEndPerformView(PerformTaskView):
def get_success_url(self):
return "/test/"
idk much about viewflows but to redirect, you need to import
redirect
and then, to redirect, do: