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
ad086cb3
Commit
ad086cb3
authored
Sep 29, 2020
by
Matheus Miranda
Browse files
Add evaluation for accessible areas
parent
182016eb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
courses/stats/serializers.py
courses/stats/serializers.py
+3
-0
No files found.
courses/stats/serializers.py
View file @
ad086cb3
...
...
@@ -8,6 +8,7 @@ from django.contrib.auth import get_user_model
User
=
get_user_model
()
from
courses.models
import
Course
from
courses.stats.models
import
AccessibleArea
from
courses.classroom.models
import
Classroom
from
courses.classroom.serializers
import
BasicClassroomSerializer
...
...
@@ -62,6 +63,8 @@ class ActionSerializer(serializers.ModelSerializer):
return
' no tópico '
+
obj
.
title
if
isinstance
(
obj
,
Forum
):
return
' no fórum '
+
obj
.
title
if
isinstance
(
obj
,
AccessibleArea
):
return
' no fórum '
+
obj
.
name
return
''
def
get_action_phrase
(
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