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.
 
 
 
 
 
 

23 lines
472 B

from rest_framework import serializers
from apps.school.models import SchoolSchedule
class SchoolScheduleSerializer(serializers.ModelSerializer):
class Meta:
model = SchoolSchedule
fields = (
'id',
'weekday',
'title',
'description',
'materials',
'age',
'month_price',
'day_discount',
)
read_only_fields = (
'id',
)