Commit ad086cb3 authored by Matheus Miranda's avatar Matheus Miranda
Browse files

Add evaluation for accessible areas

parent 182016eb
...@@ -8,6 +8,7 @@ from django.contrib.auth import get_user_model ...@@ -8,6 +8,7 @@ from django.contrib.auth import get_user_model
User = get_user_model() User = get_user_model()
from courses.models import Course from courses.models import Course
from courses.stats.models import AccessibleArea
from courses.classroom.models import Classroom from courses.classroom.models import Classroom
from courses.classroom.serializers import BasicClassroomSerializer from courses.classroom.serializers import BasicClassroomSerializer
...@@ -62,6 +63,8 @@ class ActionSerializer(serializers.ModelSerializer): ...@@ -62,6 +63,8 @@ class ActionSerializer(serializers.ModelSerializer):
return ' no tópico ' + obj.title return ' no tópico ' + obj.title
if isinstance(obj, Forum): if isinstance(obj, Forum):
return ' no fórum ' + obj.title return ' no fórum ' + obj.title
if isinstance(obj, AccessibleArea):
return ' no fórum ' + obj.name
return '' return ''
def get_action_phrase(self, obj): def get_action_phrase(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