I have a basic Django blogging application with the fields such as textfield, datetime, imagefield, slug etc. I want to have a feature where I can publish and unpublish posts in the admin interface(with the help of checkbox). How can this be done?
I have a basic Django blogging application with the fields such as textfield, datetime,
Share
Add a
BooleanFieldthat describes whether or not the post is published, and check the value of this field in your views.