Coverage for django_napse/api/permissions/serializers/permission.py: 100%
7 statements
« prev ^ index » next coverage.py v7.4.3, created at 2024-03-12 13:49 +0000
« prev ^ index » next coverage.py v7.4.3, created at 2024-03-12 13:49 +0000
1from rest_framework import serializers
3from django_napse.auth.models import KeyPermission
6class PermissionSerializer(serializers.ModelSerializer):
7 space = serializers.CharField(source="space.uuid")
9 class Meta:
10 model = KeyPermission
11 fields = ["uuid", "permission_type", "approved", "space"]