jazzband / django-authority

A Django app that provides generic per-object-permissions for Django's auth app and helpers to create custom permission checks.
http://django-authority.readthedocs.org
BSD 3-Clause "New" or "Revised" License
292 stars 57 forks source link

================ django-authority

.. image:: https://jazzband.co/static/img/badge.svg :target: https://jazzband.co/ :alt: Jazzband

.. image:: https://github.com/jazzband/django-authority/workflows/Test/badge.svg :target: https://github.com/jazzband/django-authority/actions :alt: GitHub Actions

.. image:: https://codecov.io/gh/jazzband/django-authority/branch/master/graph/badge.svg :target: https://codecov.io/gh/jazzband/django-authority

This is a Django app for per-object-permissions that includes a bunch of helpers to create custom permission checks.

The main website for django-authority is django-authority.readthedocs.org. You can also install the in-development version of django-authority with pip install django-authority==dev or easy_install django-authority==dev.

.. _django-authority.readthedocs.org: https://django-authority.readthedocs.io/ .. _in-development version: https://github.com/jazzband/django-authority/archive/master.zip#egg=django-authority-dev

Example

To get the example project running do:

Now create a flatage and open it to see some of the templatetags in action. Don't hesitate to use the admin to edit the permission objects.

Please use https://github.com/jazzband/django-authority/issues/ for issues and bug reports.

Documentation

The documenation is currently in development. You can create a nice looking html version using the setup.py::

python setup.py build_sphinx

Changelog:

0.15 (unreleased):

0.14 (2020-02-07):

0.13.1 (2018-01-28):

0.13 (2018-01-28):

0.12 (2017-01-10):

0.11 (2016-07-17):

0.10 (2015-12-14):

0.9 (2015-11-11):

0.8 (2013-12-20):

0.7 (2013-07-03):

0.6 (2013-06-13):

0.5 (2013-03-18):

0.4 (2010-01-15):

0.3 (2009-07-28):

.. _migrations/: https://github.com/jazzbands/django-authority/tree/master/migrations