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
98fb5744
Commit
98fb5744
authored
4 years ago
by
Matheus Miranda
Browse files
Options
Download
Plain Diff
Merge branch 'develop' into 'master'
Update Stats info See merge request
!23
parents
4dff1f0b
9efc4500
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
courses/stats/serializers.py
courses/stats/serializers.py
+9
-9
No files found.
courses/stats/serializers.py
View file @
98fb5744
...
...
@@ -66,14 +66,14 @@ class ActionSerializer(serializers.ModelSerializer):
def
get_accesible_area_name
(
self
,
name
):
accesible_areas
=
{
'Dashboard'
:
'
Painel
Inicial'
,
'Chat Main Page'
:
'Chats'
,
'Profile Page'
:
'Página de perfil'
,
'Notes'
:
'Anotações'
,
'Classrooms'
:
'Salas'
,
'Courses'
:
'Lista de Espaços Formativos'
,
'Messages'
:
'Avisos'
,
'Forums'
:
'Fóruns'
,
'Dashboard'
:
'
a Página
Inicial'
,
'Chat Main Page'
:
'
os
Chats'
,
'Profile Page'
:
'
a
Página de perfil'
,
'Notes'
:
'
as
Anotações'
,
'Classrooms'
:
'
as
Salas'
,
'Courses'
:
'
a
Lista de Espaços Formativos'
,
'Messages'
:
'
os
Avisos'
,
'Forums'
:
'
os
Fóruns'
,
}
return
accesible_areas
.
get
(
name
,
name
)
...
...
@@ -87,7 +87,7 @@ class ActionSerializer(serializers.ModelSerializer):
if
isinstance
(
obj
,
Forum
):
return
' no fórum '
+
obj
.
title
if
isinstance
(
obj
,
AccessibleArea
):
return
'
a área
'
+
self
.
get_accesible_area_name
(
obj
.
name
)
return
' '
+
self
.
get_accesible_area_name
(
obj
.
name
)
if
isinstance
(
obj
,
LearningObject
):
unit
=
obj
.
unit
.
title
step
=
obj
.
unit
.
lesson
.
name
...
...
This diff is collapsed.
Click to expand it.
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