Returns classic DjangoCMS-style live-draft switch to DjangoCMS
Returns classic DjangoCMS-style live-draft switch to DjangoCMS.
With 3.1 release, DjangoCMS crew decided to replace the fabulous live-draft toggle / switch with plain dumb boring buttons.
I DON’T THINK SO!!!11number_one
Well, it’s not, really. But IMHO it’s a step in the wrong direction, be it a tiny one. And anyways, I find it simpler to quickly whip up this app together then to explain to my clients that nothing has really changed.
It’s improooooved :)
The differences are cosmetic. And I like to think this one is a bit better, because:
pip install djangocms-livedraftswitch
Add before cms app:
INSTALLED_APPS = ( ... 'djangocms-livedraftswitch', # before cms app 'cms', ... )
If you don’t like Pypi, you can dump djangocms-livedraftswitch directory somewhere in PYTHONPATH.
Not tested much really…
Works with DjangoCMS 3.1.2 and Django 1.7.9.
If you clone this repo, you’ll get a full demo project. Not much of one, though, just a default DjangoCMS setup with this app installed. But this repo includes a SQLite database, so you can test it right away. Login with admin and admin.
Swapped “draft” and “live” positions to make it similar to original toggle, and also because it’s more natural this way.
Sorting out PyPi wierdness