Django Publishable Model
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.
Metadata
Release files for django-publishable-model 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-publishable-model-0.1.5.tar.gz | 10.2 kB | Without provenance | Details for django-publishable-model-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_publishable_model-0.1.5-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for django_publishable_model-0.1.5-py2.py3-none-any.whl |
Total release size: 18.4 kB
Release files / django-publishable-model-0.1.5.tar.gz
| Download URL | django-publishable-model-0.1.5.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae070ff4081c55b07b932249cc97ca0bae296cf6cac09fb209f39907f1d82c3d
|
|
BLAKE2b-256 checksum How to use checksums |
cafedf56f1723522baced375dfaff820b3e6df05b21d9a16fa756e9dded49675
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.14
|
Release files / django_publishable_model-0.1.5-py2.py3-none-any.whl
| Download URL | django_publishable_model-0.1.5-py2.py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
14990cf490a53aa90ccf6be19e8972b8db017928596551805a92a0a481a7f72d
|
|
BLAKE2b-256 checksum How to use checksums |
cf876b05e6fb507de299fbde67c0870fbe52ea26c310a32d0f0401050df60114
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.14
|
Security for django-publishable-model 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.