Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
MOOC packages by hacklab
django-courses
Commits
85e9ed7b
Commit
85e9ed7b
authored
Sep 02, 2021
by
Eduardo Nunes
Browse files
Merge branch 'develop' into 'master'
Adding allow_null into intro_video See merge request
!83
parents
b41ccee4
7016eba2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
courses/serializers.py
courses/serializers.py
+1
-1
No files found.
courses/serializers.py
View file @
85e9ed7b
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment