|
|
|
|
@ -106,6 +106,7 @@ class CourseCreateSerializer(DispatchContentMixin, |
|
|
|
|
'materials', |
|
|
|
|
'created_at', |
|
|
|
|
'update_at', |
|
|
|
|
'deactivated_at', |
|
|
|
|
'content', |
|
|
|
|
'gallery', |
|
|
|
|
) |
|
|
|
|
@ -115,6 +116,7 @@ class CourseCreateSerializer(DispatchContentMixin, |
|
|
|
|
'url', |
|
|
|
|
'created_at', |
|
|
|
|
'update_at', |
|
|
|
|
'deactivated_at', |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
def create(self, validated_data): |
|
|
|
|
@ -163,12 +165,14 @@ class LessonCreateSerializer(serializers.ModelSerializer): |
|
|
|
|
'content', |
|
|
|
|
'created_at', |
|
|
|
|
'update_at', |
|
|
|
|
'deactivated_at', |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
read_only_fields = ( |
|
|
|
|
'id', |
|
|
|
|
'created_at', |
|
|
|
|
'update_at', |
|
|
|
|
'deactivated_at', |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
def dispatch_content(self, lesson, content): |
|
|
|
|
|