mirror of
https://github.com/lemeow125/DocManagerBackend.git
synced 2025-01-18 17:13:00 +08:00
Return email in questionnaire client field
This commit is contained in:
parent
98e12dd15e
commit
f204b7e79e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue