I have a workflow for a model in the Django admin that is very similar to the users’ workflow. First, I have a form with basic fields and then, a second form with the rest of the data.
It’s the same workflow as auth.user
I need to remove "save and continue" and "save and add another" buttons to prevent the user breakoing the workflow.
I have tried to add it as extra_context:
extra_context = {
'show_save_and_add_another': False,
'show_save_and_continue': False
}
and pass it through ModelAdmin.add_view or ModelAdmin.change_view but it doesn’t work.
This is only for one model, so I don’t want to remove from submit_line.html
Any clue or alternative way?
Thanks in advance
Beside its (a bit awkward) hacking style, you could aslo override the template tag directly.
Normally overriding template is more recommended.