Metadata-Version: 2.1
Name: django-publishable-model
Version: 0.1.5
Summary: Make your models publishable in an easy way, the admin will be smart and easily configurable
Home-page: https://github.com/frankhood/django-publishable-model
Author: FrankHood Business Solutions srl
Author-email: info@frankhood.it
License: MIT
Keywords: django-publishable-model
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: Django :: 2.2
Classifier: Framework :: Django :: 3.2
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
License-File: LICENSE.md

=============================
Django Publishable Model
=============================

.. image:: https://badge.fury.io/py/django-publishable-model.svg/?style=flat-square
    :target: https://badge.fury.io/py/django-publishable-model

.. image:: https://readthedocs.org/projects/pip/badge/?version=latest&style=flat-square
    :target: https://django-publishable-model.readthedocs.io/en/latest/

.. image:: https://img.shields.io/coveralls/github/frankhood/django-publishable-model/master?style=flat-square
    :target: https://coveralls.io/github/frankhood/django-publishable-model?branch=master
    :alt: 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`:

.. code-block:: python

    INSTALLED_APPS = (
        ...
        'publishable_model',
        ...
    )


Features
--------

* Handle of Django Model's publication.

Example of usage
----------------
.. code-block:: python

    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:

*  Cookiecutter_
*  `cookiecutter-djangopackage`_

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage




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.
