Commit 9efc4500 authored by Matheus Miranda's avatar Matheus Miranda
Browse files

Update message for AccessibleAreas

parent 62b849f5
......@@ -66,14 +66,14 @@ class ActionSerializer(serializers.ModelSerializer):
def get_accesible_area_name(self, name):
accesible_areas = {
'Dashboard': 'Página 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 ' "{}"'.format(self.get_accesible_area_name(
return ' ' + self.get_accesible_area_name(
if isinstance(obj, LearningObject):
unit = obj.unit.title
step =
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