문제

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

도움이 되었습니까?

해결책

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 :)

다른 팁

We actually want that 3rd party apps can have a daft/public version workflow easily... if you could come up with a way to provide that.... please share.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top