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

Ask A Question

Stats

  • Questions 530k
  • Answers 530k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer there is a selection here http://monotouch.info/MonoTouch/Apps May 16, 2026 at 11:38 pm
  • Editorial Team
    Editorial Team added an answer You can encrypt connection strings in your web.config file. See… May 16, 2026 at 11:38 pm
  • Editorial Team
    Editorial Team added an answer You can use .filter() for this, for example: $("ul").filter(function() {… May 16, 2026 at 11:38 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

In the django admin panel I currently have a DateField showing a nice Javascript
I have a nice php and ajax script that uploads a photo and displays
I'm writing an admin panel for a customer's sites, and at few places, I
I have, I believe, a simple problem, but I don't know how to solve
Let's say that I have a vast quantity of restaurant reviews in a database
I have a nice fully functioning module (wrtten using tcl/cpp) it works fine. I
In Moodle 1.9.7, I need to allow the teacher to upload a file in
I'm from a Windows programming background when writing tools, but have been programming using
is it possibly in c# to have some sort of base class functionality which
Is there a good way provide user configurable app settings in Django admin? Basically

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.