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 985487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:10:19+00:00 2026-05-16T05:10:19+00:00

I have a nice admin panel setup so users can manage the data within

  • 0

I have a nice admin panel setup so users can manage the data within the site.

Problem is that I need to implement a workflow, so saved models can be approved from and to various stages, to then be finally published.


As the model in question is just one, I thougth of adding a boolean ‘approved_for_publishing’ field and a ‘approved_by’ manytomany field.

The obstancle is integrating this within the admin panel.

If someone has a few opinions on the topic that would be really awesome. =)

  • 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-05-16T05:10:20+00:00Added an answer on May 16, 2026 at 5:10 am

    Some time early I completed similar functionality. Here is what you need to do:
    Create an approval status model, and have different variants of approval, i.e each model object represents different approval stage.Also you must have a StatusHistory model which reflects what current status does your article(for example) has.

    class Article(models.Model)
          title=models.CharField(max_length=32)
          body=models.TextField()
    
    class ApprovalStatus(models.Model):
          name=models.CharField(max_length=32)
          alias=models.CharField(max_length=32,pk=True)
    
    class StatusHistory(models.Model):
          status=models.ForeignKey(ApprovalStatus)
          article=models.ForeignKey(Article)
          current=models.BooleanField(default=True)
    

    So when in your admin you change the status of the article, a new StatusHistory object is created and old object is given current=False variable.
    This approach seems a bit bulky, but when you implement it, all you need easily falls into ORM: status history is just a list of all objects, changes to workflow involve only creating new approval status and changing your hardcoded status flow routines

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a nice page that does everything I need. However one of the
I have this nice little MSBuild-based daily build setup that I use on my
In the django admin panel I currently have a DateField showing a nice Javascript
have a nice day. I got problem when trying to create an image from
I have a nice dataset loop working, but I need to run another loop
I have a nice clean domain layer in my app that was developed in
I have a nice DataGridView showing what is basically some kind of log data
I have a nice interface, and I want to implement one member of it
I need to match all urls that DO have mydomain.com in them AND DO
So I have an rails admin system that will allow a user to choose

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.