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

1from rest_framework import serializers 

2 

3from django_napse.auth.models import KeyPermission 

4 

5 

6class PermissionSerializer(serializers.ModelSerializer): 

7 space = serializers.CharField(source="space.uuid") 

8 

9 class Meta: 

10 model = KeyPermission 

11 fields = ["uuid", "permission_type", "approved", "space"]