Make your models publishable in an easy way, the admin will be smart and easily configurable
Project description
Make your models publishable in an easy way, the admin will be smart and easily configurable
Documentation
The full documentation is at https://django-publishable-model.readthedocs.io.
Quickstart
Install Django Publishable Model:
pip install django-publishable-model
Add it to your INSTALLED_APPS:
INSTALLED_APPS = (
...
'publishable_model',
...
)
Features
Handle of Django Model’s publication.
Example of usage
from publishable_model.models import PublishableModel
class News(PublishableModel, models.Model):
title = models.CharField(_("Title"), max_length=64, )
content = models.TextField(_("Content"), blank=True, default="")
def __str__(self):
return self.title
class Meta(PublishableModel.Meta):
verbose_name = _('News')
verbose_name_plural = _('News')
Running Tests
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate (myenv) $ pip install tox (myenv) $ tox or ./manage.py test tests
Development commands
- ::
pip install -r requirements_dev.txt invoke -l
Credits
Tools used in rendering this package:
History
0.1.4 (2021-11-11)
Fix on readme and license.
0.1.3 (2021-11-11)
Fix on readme.
0.1.2 (2021-11-11)
Fix on readme.
0.1.1 (2021-11-11)
Add tox configuration.
0.1.0 (2020-09-21)
First release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-publishable-model-0.1.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae070ff4081c55b07b932249cc97ca0bae296cf6cac09fb209f39907f1d82c3d |
|
MD5 | ec412c8dcec4658a4e22e9326e223dbb |
|
BLAKE2b-256 | cafedf56f1723522baced375dfaff820b3e6df05b21d9a16fa756e9dded49675 |
Close
Hashes for django_publishable_model-0.1.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14990cf490a53aa90ccf6be19e8972b8db017928596551805a92a0a481a7f72d |
|
MD5 | f5301c4ddfb647d71d43e86a0b66c460 |
|
BLAKE2b-256 | cf876b05e6fb507de299fbde67c0870fbe52ea26c310a32d0f0401050df60114 |