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
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 =
2 matches
Mail list logo