@register.inclusion_tag('admin/submit_line.html', takes_context=True)
def submit_row(context):
    ctx = original_submit_row(context)
ctx.update({'show_save_and_add_another': context.get(
    'show_save_and_add_another', ctx['show_save_and_add_another']),
    'show_save_and_continue': context.get('show_save_and_continue', ctx[
    'show_save_and_continue'])})
return ctx
In Django admin, how can I hide Save and Continue and Save and Add Another buttons on a model admin?