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
6b9d0780
Commit
6b9d0780
authored
Aug 18, 2020
by
Bruno Martin
Browse files
add classroom to serializer
parent
71968120
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
courses/serializers.py
courses/serializers.py
+3
-1
No files found.
courses/serializers.py
View file @
6b9d0780
...
...
@@ -127,7 +127,9 @@ class ProfessorMessageSerializer(serializers.ModelSerializer):
class
Meta
:
model
=
ProfessorMessage
fields
=
(
'id'
,
'course'
,
'course_name'
,
'course_slug'
,
'professor'
,
'users'
,
'subject'
,
'message'
,
'date'
,
'is_read'
,
'groups'
,
'classes'
)
'users'
,
'subject'
,
'message'
,
'date'
,
'is_read'
,
'groups'
,
'classes'
,
'classrooms'
,
)
def
get_course_slug
(
self
,
obj
):
try
:
...
...
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