Commit 13338872 authored by Glaucia S. Santos's avatar Glaucia S. Santos
Browse files

Fix to save text of material

parent ef2beb5e
......@@ -20,6 +20,11 @@ class CourseMaterialViewSet(viewsets.ModelViewSet):
self.kwargs['course'] = obj.course
return super(CourseMaterialViewSet, self).pre_save(obj)
def perform_update(self, serializer):
instance = CourseMaterial.objects.get(['id'])
instance.text =['text']
class CourseMaterialFileViewSet(viewsets.ModelViewSet):
model = CourseMaterialFile
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment