parent
b0e6f68fe2
commit
acb43aa16e
3 changed files with 47 additions and 14 deletions
@ -0,0 +1,22 @@ |
|||||||
|
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', |
||||||
|
) |
||||||
|
|
||||||
|
read_only_fields = ( |
||||||
|
'id', |
||||||
|
) |
||||||
Loading…
Reference in new issue