Commit 7e22e095 authored by Matheus Miranda's avatar Matheus Miranda
Browse files

Undo condition for getting messages

parent 83508b52
......@@ -203,7 +203,7 @@ class ProfessorMessageViewSet(viewsets.ModelViewSet):
| Q(groups__in=self.request.user.groups.all())
| Q(professor=self.request.user)
queryset = queryset.filter(query, status='published').order_by('-id').distinct()
queryset = queryset.filter(query).order_by('-id').distinct()
classroom = self.request.query_params.get('classroom', None)
if classroom:
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