You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
485 B
17 lines
485 B
from rest_framework import serializers
|
|
|
|
|
|
from apps.course.models import Lesson, Participant, LessonCompletion
|
|
from apps.account.models import StudentUser, User
|
|
|
|
|
|
|
|
|
|
class ParticipantSerializer(serializers.ModelSerializer):
|
|
email = serializers.EmailField(required=True)
|
|
gender = serializers.ChoiceField(choices=User.GenderChoices.choices, required=True)
|
|
|
|
|
|
class Meta:
|
|
model = StudentUser
|
|
fields = ['fullname' , 'phone_number', 'gender', 'email', 'birthdate']
|