Re: Getting approval from Admin first before posting a blog in Django

2020-04-21 Thread Motaz Hejaze
in post model add a boolean field ( approved : default = false ) .. and in your views filter only approved posts before showing them ... this way admin can login to admin panel , check the latest posts and approve them ( make approve = True ) then and only then they will be viewed in your template

Getting approval from Admin first before posting a blog in Django

2020-04-21 Thread Ahmed Khairy
Hi all, I have made a blog as a project and I have set users to submit posts for the blog directly but i want to direct this post to the admin first for approval before showing on the website. here is the Post Create View Class. class PostCreateView(CreateView): model = Post fields =