文件名称:django-rest-serializer-field-permissions:Django Rest Framework的逐字段序列化程序权限
文件大小:29KB
文件格式:ZIP
更新时间:2024-05-30 17:41:17
Python
django-rest-serializer-field-permissions 将字段逐字段权限类添加到您的序列化器字段中,如下所示: class PersonSerializer ( FieldPermissionSerializerMixin , LookupModelSerializer ): # Only allow authenticated users to retrieve family and given names family_names = serializers . CharField ( permission_classes = ( IsAuthenticated (), )) given_names = serializers . CharField ( permission_classes = ( IsAuthent
【文件预览】:
django-rest-serializer-field-permissions-master
----setup.py(1KB)
----.gitignore(57B)
----.travis.yml(328B)
----MANIFEST.in(33B)
----LICENSE(34KB)
----README.md(7KB)
----rest_framework_serializer_field_permissions()
--------__init__.py(80B)
--------serializers.py(1KB)
--------tests()
--------fields.py(5KB)
--------permissions.py(1KB)
--------test_app()
----.pylintrc(10KB)
----tox.ini(912B)