Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django CMS Draft/Live system for custom model

Django CMS has cool Draft/Live -system related to pages. Does Django CMS support enabling similar functionality for custom models? If it does how to do it?

I'm trying to build news-app, that have models, that have placeholderfield and some other fields.

So, any ideas how to implement draft/live -system for my news-app?

Django-CMS 3.0.0 Django 1.5.5

like image 510
Jeewes Avatar asked May 26 '26 06:05

Jeewes


1 Answers

Unfortunately, the way draft/live system implemented in Django CMS doesn't allow to reuse it on another model. In Django CMS, it is achieved by versioning Page object and maintaining publisher_is_draft and publisher_public properties.

Yet you can't directly reuse Django CMS approach in your app, you can closely reimplement it in your own, better way. Please don't forget to share the sources :)

like image 136
Marat Avatar answered May 27 '26 20:05

Marat



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!