Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
249 views
in Technique[技术] by (71.8m points)

forms - Django validation steps process

So, I would like to create a validation process of a post between multiple users.

Let say for example that a user creates a post and click on validate or "ask for notice". I would like to be able to send the new post to a specific user in order to allow him to check the post and its content before validate and publish it.

I would like to let multiple users of the same app to send the post to this specific "team leader" user.

So I think that I need to :

  • Create a model for the post
  • Create a specific view and render it into an html page for the creation part
  • When user click on "ask for notice" button, I want the post to appear in the posts_notice.html page where the "team leader" user would be able to see all the current posts asking for notice and validation. Of course, this team leader user will have the possibility to edit each post. To filter all the posts I was thinking about using a boolean field called "is_noticed". If yes the post is not rendered. If False it is rendered.
  • Once all the posts are edited, the team leader will have the possibility to validate all of them in one click. _ Once everything is validated and published, it will automatically remove all the posts from posts_notice.html page (so put the is_noticed to True), since they will already be noticed by the team leader.

Would that be a good process? Do you have any better idea on how to proceed?

Is there any third-party app that I could used to do that easily?

Thanks a lot !

question from:https://stackoverflow.com/questions/65876482/django-validation-steps-process

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...