Commit 6b9d0780 authored by Bruno Martin's avatar Bruno Martin
Browse files

add classroom to serializer

parent 71968120
......@@ -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',
def get_course_slug(self, obj):
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