Skip to main content

An application for managing your organization's authorities (departments, directorates etc)

Project description

An application for managing your organization’s authorities (departments, directorates etc)

Installation

Install it with pip install django-authorities, or if you want to use the latest version on github, try pip install git+https://github.com/spapas/django-authorities.

After it is installed, put authorities in your INSTALLED_APPS setting.

Simple usage

This is a very simple app with two models and a couple of views for editing these.

After you’ve installed it, you can visit the django admin to edit authorities.Authority``s and ``authorities.AuthorityKind``s. ``AuthorityKind only has a name (so it can be directorate, department team etc) while Authority has kind (AuthorityKind), is_active (boolean), parent (an optional FK to another Authority to create hierarchies) and users (an M2M relation with settings.AUTH_USER_MODEL; each user can belong to multiple authorities and each authority will have more than one user).

Also I’ve included a couple of non-admin views which you can use as they are or modify. Either inherit from them, put them in your own urls.py or include the whole authorities.urls. The templates of these views inherit from a base.html which needs to provide a content block.

v.0.1.2

  • Add template tags to get current user authorities

  • Improve README

v.0.1.0

  • Initial version

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-authorities-0.1.2.tar.gz (5.5 kB view details)

Uploaded Source

File details

Details for the file django-authorities-0.1.2.tar.gz.

File metadata

File hashes

Hashes for django-authorities-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b79eeae80759a1c913ad39b110209e87049a11b9686d7e29f55bff49bfa48b13
MD5 0857c5ccc8974cb80a57f092b15e89cb
BLAKE2b-256 eccf2e654af338f45c0c357bf7eb3a977c0bee52517c9659b5185bb2c4b61ec2

See more details on using hashes here.

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