Re: Moderator and publishing workflow implementation in Django

2015-08-31 Thread Mayank Sharma
Thank you Shawn and Dheerendra. But I have 9 to 10 apps and each apps will have different list of moderators. One app can have many moderator who can approve the page to go LIVE. Can you suggest me some good practice to implement this feature. Example or snippet of code will really help me. R

Re: Moderator and publishing workflow implementation in Django

2015-08-28 Thread Dheerendra Rathor
Django has auth apps (Admin) and it also has user groups, permissions. What you asking is quite simple, you can add your editor and moderator on admin site, can write custom actions to do on news articles. On Fri, 28 Aug 2015 at 20:53 Shawn Milochik wrote: > One easy solution: > > Add an "approv

Re: Moderator and publishing workflow implementation in Django

2015-08-28 Thread Shawn Milochik
One easy solution: Add an "approved_by" field, which is a ForeignKey to User. Let it be null by default. When it's approved, save the User who approved it. Then, whenever you're doing an ORM query to grab all stories to display, just filter on approved_by being not_null. Alternatively, you can ad

Moderator and publishing workflow implementation in Django

2015-08-28 Thread Mayank Sharma
For the new web application I decided to learn Django and dig deeper into this framework. I am working on a web application which has "News Apps" which accepts Title(CharField), Description(TextField) and Date (DateField). Once the draft is created by the news editor, it requires moderator (in-