Commit 7016eba2 authored by Eduardo Nunes's avatar Eduardo Nunes
Browse files

Adding allow_null into intro_video

parent e8c333a1
......@@ -32,7 +32,7 @@ class SimpleUserSerializer(serializers.ModelSerializer):
class CourseSerializer(serializers.ModelSerializer):
intro_video = VideoSerializer(required=False)
intro_video = VideoSerializer(required=False, allow_null=True)
home_thumbnail_url = serializers.SerializerMethodField()
professors = SimpleUserSerializer(read_only=True, many=True)
is_user_assistant = serializers.SerializerMethodField()
......
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