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
ca9d5f84
Commit
ca9d5f84
authored
Aug 06, 2020
by
Bruno Martin
Browse files
set classroom image field as readonly
parent
7c2b69ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
courses/classroom/serializers.py
courses/classroom/serializers.py
+1
-0
No files found.
courses/classroom/serializers.py
View file @
ca9d5f84
...
...
@@ -58,6 +58,7 @@ class ClassroomSerializer(serializers.ModelSerializer):
'forum'
,
'can_edit'
,
)
read_only_fields
=
[
'image'
]
depth
=
1
def
get_can_edit
(
self
,
obj
):
...
...
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