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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

Supported by

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