Field level permissions for Django REST Framework
Project description
New permissions possibilities for rest-framework
Compatibility
- work with :
Python 2.7 / Python 3.4
Dango 1.6
Django Rest Framework < 2.4
Installation
Install the package from pypi:
pip install djangorestframework-fine-permissions
Add the application in your django settings:
DJANGO_APPS = ('rest_framework_fine_permissions',)
Sync the django’s database:
python manage.py syncdb
Configure the “filter permissions” module in your rest framework settings:
REST_FRAMEWORK = { 'DEFAULT_FILTER_BACKENDS': ( 'rest_framework_fine_permissions.filters.FilterPermissionBackend', ), 'DEFAULT_PERMISSION_CLASSES': ( 'rest_framework_fine_permissions.permissions.FullDjangoModelPermissions', 'rest_framework_fine_permissions.permissions.FilterPermission', ) }
Usage
Go to the django admin page
Add field’s permissions to a user with the “User fields permissions” link
Add filter’s permissions to a user with the “User filters permissions” link
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for djangorestframework-fine-permissions-0.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2f53ec57153a76feeffc852baff1359154205ecb741b16b27dfd93e4c2153b0 |
|
MD5 | 6984500416780e2f916a93eb88003228 |
|
BLAKE2b-256 | dc1f7e945268c7ffbea298deecd4dce974911fc4fa64931ec8b79c1df1914037 |