Remove filter condition for filtering MEMBERS only
This commit is contained in:
parent
799ea85815
commit
5904df6634
|
|
@ -5,7 +5,6 @@ from rest_framework.decorators import api_view
|
|||
from rest_framework.exceptions import PermissionDenied
|
||||
from rest_framework.response import Response
|
||||
|
||||
from vbv_lernwelt.course.models import CourseSessionUser
|
||||
from vbv_lernwelt.course.permissions import is_course_session_expert
|
||||
from vbv_lernwelt.feedback.models import FeedbackResponse
|
||||
|
||||
|
|
@ -59,9 +58,10 @@ def get_feedback_for_circle(request, course_session_id, circle_id):
|
|||
submitted=True,
|
||||
circle_id=circle_id,
|
||||
# filter out experts that might have submitted just for testing
|
||||
feedback_user__in=CourseSessionUser.objects.filter(
|
||||
course_session_id=course_session_id, role=CourseSessionUser.Role.MEMBER
|
||||
).values_list("user", flat=True),
|
||||
# important: the commented code causes to return no feedbacks with prod data
|
||||
# feedback_user__in=CourseSessionUser.objects.filter(
|
||||
# course_session_id=course_session_id, role=CourseSessionUser.Role.MEMBER
|
||||
# ).values_list("user", flat=True),
|
||||
).order_by("created_at")
|
||||
|
||||
# I guess this is ok for the üK case
|
||||
|
|
|
|||
Loading…
Reference in New Issue