Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1.25 KB

File metadata and controls

33 lines (22 loc) · 1.25 KB

django-organizations-permissions

Django auth backend and DRF Permissions class for django-organizations.

Installation

Add next line to requirements.txt file:

git+https://github.com/Dmitri-Sintsov/django-organizations-permissions.git

Then run:

python3 -m pip install -r requirements.txt
python3 manage.py makemigrations org_permissions
python3 manage.py migrate

Use provided sample ORGANIZATION_PERMISSIONS or create your own permissions.py then run:

python3 manage.py create_organizations_permissions --app-names=org_permissions

Usage

See sample project for the simple example.