unistra / django-rest-framework-fine-permissions Goto Github PK
View Code? Open in Web Editor NEWUtilities for the rest framework library
License: GNU General Public License v2.0
Utilities for the rest framework library
License: GNU General Public License v2.0
File "/home/abuild/rpmbuild/BUILD/djangorestframework-fine-permissions-0.8.0/rest_framework_fine_permissions/models.py", line 9, in <module>
from django.utils.encoding import python_2_unicode_compatible
ImportError: cannot import name 'python_2_unicode_compatible' from 'django.utils.encoding' (/usr/lib/python3.8/site-packages/django/utils/encoding.py)
First off, awesome library. It does almost exactly how I've been looking to fix DRF permissions for myself for awhile.
My one question/thought is... This implementation is heavily coupled to the idea that a permission allows a user to access (or not access) a certain field on a certain model. However, there are definitely cases where what is really desired is restricting access to a certain serializer field for a user. Is this a use case you'd be interested in supporting?
This app is incompatible with Django core swappable user model
rest_framework_fine_permissions.FilterPermissionModel.user: (fields.E301) Field defines a relation with the model 'auth.User', which has been swapped out.
HINT: Update the relation to point at 'settings.AUTH_USER_MODEL'.
rest_framework_fine_permissions.UserFieldPermissions.user: (fields.E301) Field defines a relation with the model 'auth.User', which has been swapped out.
HINT: Update the relation to point at 'settings.AUTH_USER_MODEL'.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.