This repository has been archived by the owner on Aug 31, 2020. It is now read-only.
About
Note: This version is a bugfix version of the [0.1.4, ..., 0.2.0] releases.
Installing:
- Run
pip install django-improved-permissions==0.2.1
or - Download the zip file;
- Run
pip install 0.2.1.zip
Major Changes
- Persistent Mode
- Keeps checking the permission in inherit mode even if find a
False
.
- Keeps checking the permission in inherit mode even if find a
Minor Changes
- New optional kwarg in the
has_permission
shortcut:persistent
True
: Persistent mode enabledFalse
: Persistent mode disabledNone
: Fallback in the dict settings (default)
- New optional kwarg in the
has_permission
shortcut:any_object
True
: Check if user has the following permission to ANY objectFalse
: Check if user has the following permission ONLY to that object (default)