diff --git a/docmanager_backend/questionnaires/serializers.py b/docmanager_backend/questionnaires/serializers.py index 625d254..e1612c1 100644 --- a/docmanager_backend/questionnaires/serializers.py +++ b/docmanager_backend/questionnaires/serializers.py @@ -5,7 +5,7 @@ from .models import Questionnaire class QuestionnaireSerializer(serializers.ModelSerializer): client = serializers.SlugRelatedField( - many=False, slug_field="id", queryset=CustomUser.objects.all(), required=False + many=False, slug_field="email", queryset=CustomUser.objects.all(), required=False ) client_type = serializers.ChoiceField( choices=Questionnaire.CLIENT_TYPE_CHOICES)