Commit 62b849f5 authored by Matheus Miranda's avatar Matheus Miranda
Browse files

Update stats text

parent bc9cb134
......@@ -66,7 +66,7 @@ class ActionSerializer(serializers.ModelSerializer):
def get_accesible_area_name(self, name):
accesible_areas = {
'Dashboard': 'Painel Inicial',
'Dashboard': 'Página Inicial',
'Chat Main Page': 'Chats',
'Profile Page': 'Página de perfil',
'Notes': 'Anotações',
......@@ -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 ' "{}"'.format(self.get_accesible_area_name(obj.name))
if isinstance(obj, LearningObject):
unit = obj.unit.title
step = obj.unit.lesson.name
......
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