Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8782057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:28:04+00:00 2026-06-13T20:28:04+00:00

I have a workflow for a model in the Django admin that is very

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T20:28:05+00:00Added an answer on June 13, 2026 at 8:28 pm

    Beside its (a bit awkward) hacking style, you could aslo override the template tag directly.
    Normally overriding template is more recommended.

    # put this in some app such as customize/templatetags/admin_modify.py and place the app
    # before the 'django.contrib.admin' in the INSTALLED_APPS in settings
    
    from django.contrib.admin.templatetags.admin_modify import *
    from django.contrib.admin.templatetags.admin_modify import submit_row as original_submit_row
    # or 
    # original_submit_row = submit_row
    
    @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 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use Windows Workflow and have a model that looks similar
I have a MOSS workflow where on the first form, the user can choose
I have a workflow created in Sharepoint designer that works fine when manually triggered.
I have a workflow that is created in code and a variable of type
I have a workflow that contains a Pick activity. Each PickBranch is triggered by
I have a skelta workflow that has finished with errors according to the WorkflowExecutionReport.
I have a nice admin panel setup so users can manage the data within
I need to add a custom view to a model admin similar to the
I'm getting lost with Git branching model and the workflow that I want to
I've come across the following excellent blogpost on a git workflow model that works

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.