Metadata-Version: 2.1
Name: skip-django-pynotify
Version: 0.5.5.1
Summary: General purpose notification library for Django
Home-page: https://github.com/skip-pay/django-pynotify
Author: Ondřej Kulatý
Author-email: kulaty.o@gmail.com
License: MIT license
Keywords: django-pynotify
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT 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
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.6
License-File: LICENSE
License-File: AUTHORS.rst

===============
Django PyNotify
===============


.. image:: https://img.shields.io/pypi/v/django-pynotify.svg
        :target: https://pypi.python.org/pypi/django-pynotify

.. image:: https://img.shields.io/travis/druids/django-pynotify.svg
        :target: https://travis-ci.org/druids/django-pynotify

.. image:: https://readthedocs.org/projects/django-pynotify/badge/?version=latest
        :target: https://django-pynotify.readthedocs.io/en/latest/?badge=latest
        :alt: Documentation Status

.. image:: https://coveralls.io/repos/github/druids/django-pynotify/badge.svg?branch=master
        :target: https://coveralls.io/github/druids/django-pynotify?branch=master
        :alt: Code coverage

General purpose notification library for Django.


* Free software: MIT license
* Documentation: https://django-pynotify.readthedocs.io.
* Supported Python versions: 3.7, 3.8, 3.9, 3.10, 3.11
* Supported Django versions: 3.1, 3.2

.. Always make sure that versions are in sync with CI file

Features
--------

* Easy integration into project
* Notification templating and translation
* Asynchronous operation

Credits
-------

This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.

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


=======
History
=======

0.5.5 (2023-01-03)
------------------

* Add support for Python 3.10 and 3.11

0.5.4 (2022-03-10)
------------------

* Migrate CI from Travis to Github Actions
* Fix lint errors

0.5.3 (2022-03-01)
------------------

* Prevent duplicates of ``NotificationTemplate`` objects

0.5.2 (2022-02-21)
------------------

* Allow handlers that are not paired with any signal
* Return notifications created with ``notify`` helper function

0.5.1 (2022-01-20)
------------------

* Use ``JSONField`` instead of ``TextField`` for JSON based fields
* Add ``extra_fields`` to ``BaseTemplate``
* Drop Django 2.x support

0.4.6 (2021-08-31)
------------------

* Add ``is_locked`` field to ``AdminNotificationTemplate``

0.4.5 (2021-01-21)
------------------

* Update dependencies

0.4.4 (2021-01-15)
------------------

* Add support for Python 3.9
* Add support for Django 3
* Fix BS4 warning

0.4.3 (2020-12-16)
------------------

* Fix translation file

0.4.2 (2020-12-11)
------------------

* Add ``send_push`` flag to ``AdminNotificationTemplate`` model
* Ignore duplicit dispatcher classes in ``BaseHandler``

0.4.1 (2020-10-12)
------------------

* Add ``PYNOTIFY_STRIP_HTML`` config option

0.4.0 (2020-08-12)
------------------

* Removed support of Django 1.11, 2.0 and 2.1
* Fixed library requirements

0.3.2 (2020-07-27)
------------------

* Add ``is_active`` flag to ``AdminNotificationTemplate`` model

0.3.1 (2020-06-12)
------------------

* Improve template variable checking
* Add new filter ``filter_with_related_object``

0.3.0 (2020-04-19)
------------------

* Fix documentation
* Change ``PYNOTIFY_AUTOLOAD_APPS`` to ``PYNOTIFY_AUTOLOAD_MODULES``, i.e. allow notification handlers to reside in
  arbitrary module

0.2.2 (2020-02-11)
------------------

* Use Django JSON encoder for encoding extra data

0.2.1 (2020-02-11)
------------------

* Fix failed PyPi upload

0.2.0 (2020-02-11)
------------------

* Add admin templates
* Limit usage of related objects in templates and add ``PYNOTIFY_RELATED_OBJECTS_ALLOWED_ATTRIBUTES`` setting
* Show placeholder text for deleted related objects

0.1.7 (2020-01-20)
------------------

* Add support for Python 3.8 and Django 2.2
* Fix generating of translations
* Allow unnamed related objects to be passed in a list

0.1.6 (2019-04-16)
------------------

* Add ``PYNOTIFY_TEMPLATE_PREFIX`` config option
* Add methods ``get_template_slug()`` and ``get_dispatcher_classes()`` to ``BaseHandler``
* Add coveralls.io integration

0.1.5 (2019-04-12)
------------------

* Add extra data to ``Notification`` model

0.1.4 (2019-04-08)
------------------

* Add ``_can_handle()`` method to ``BaseHandler``
* Add ``PYNOTIFY_ENABLED`` setting

0.1.3 (2019-04-01)
------------------

* Add ``kwargs`` to Notification manager's ``create()`` method
* Add ``realted_objects_dict`` property to ``Notification`` model

0.1.2 (2019-03-20)
------------------

* Remove automatic deploy to PyPi from Travis

0.1.1 (2019-03-20)
------------------

* First release of the library
