Skip to main content

Make your models publishable in an easy way, the admin will be smart and easily configurable

Project description

https://badge.fury.io/py/django-publishable-model.svg/?style=flat-square https://readthedocs.org/projects/pip/badge/?version=latest&style=flat-square Coverage Status

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-publishable-model-0.1.5.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

django_publishable_model-0.1.5-py2.py3-none-any.whl (8.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django-publishable-model-0.1.5.tar.gz.

File metadata

  • Download URL: django-publishable-model-0.1.5.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for django-publishable-model-0.1.5.tar.gz
Algorithm Hash digest
SHA256 ae070ff4081c55b07b932249cc97ca0bae296cf6cac09fb209f39907f1d82c3d
MD5 ec412c8dcec4658a4e22e9326e223dbb
BLAKE2b-256 cafedf56f1723522baced375dfaff820b3e6df05b21d9a16fa756e9dded49675

See more details on using hashes here.

File details

Details for the file django_publishable_model-0.1.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_publishable_model-0.1.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 14990cf490a53aa90ccf6be19e8972b8db017928596551805a92a0a481a7f72d
MD5 f5301c4ddfb647d71d43e86a0b66c460
BLAKE2b-256 cf876b05e6fb507de299fbde67c0870fbe52ea26c310a32d0f0401050df60114

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page