emencia / django-blog-lotus

A weblog application with Django.
https://django-blog-lotus.readthedocs.io/
MIT License
6 stars 1 forks source link

Article model publication state method #31

Closed sveetch closed 2 years ago

sveetch commented 2 years ago

Currently the publication state of an article is only implemented in manager and admin controller.

However, it may be useful to have this also from an Article object, so as a method available from Article model.

ArticleAdmin controller have a method "is_published" which should be ported to the model which then could be used everywhere, firstly from admin controller and also for "publication" filter for the admin change list.

sveetch commented 2 years ago

Done in 0.5.0-pre.4