core: use only user ids for group
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
		@ -2,20 +2,16 @@
 | 
			
		||||
from rest_framework.serializers import ModelSerializer
 | 
			
		||||
from rest_framework.viewsets import ModelViewSet
 | 
			
		||||
 | 
			
		||||
from authentik.core.api.users import UserSerializer
 | 
			
		||||
from authentik.core.models import Group
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class GroupSerializer(ModelSerializer):
 | 
			
		||||
    """Group Serializer"""
 | 
			
		||||
 | 
			
		||||
    users = UserSerializer(many=True)
 | 
			
		||||
 | 
			
		||||
    class Meta:
 | 
			
		||||
 | 
			
		||||
        model = Group
 | 
			
		||||
        fields = ["pk", "name", "is_superuser", "parent", "users", "attributes"]
 | 
			
		||||
        depth = 2
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class GroupViewSet(ModelViewSet):
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user