开发者

Django: publishing and unpublishing posts

I have a basic Django blogging application with the fields such as textfield, datetime, imagefield, slug etc. I want to have a feature whe开发者_如何学Gore I can publish and unpublish posts in the admin interface(with the help of checkbox). How can this be done?


Add a BooleanField that describes whether or not the post is published, and check the value of this field in your views.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜