👔(backend) add resolved thread to queryset

We need to include resolved threads in the queryset
of the ThreadViewSet, otherwise they won't be
included in the list of threads and we will not be
able to list resolved threads in the side panel.
This commit is contained in:
Anthony LC
2026-05-26 10:28:09 +02:00
committed by Manuel Raynaud
parent 3264e29941
commit 7956540b73
+1 -3
View File
@@ -2946,9 +2946,7 @@ class ThreadViewSet(
permission_classes = [permissions.CommentPermission]
pagination_class = None
serializer_class = serializers.ThreadSerializer
queryset = models.Thread.objects.select_related("creator", "document").filter(
resolved=False
)
queryset = models.Thread.objects.select_related("creator", "document")
resource_field_name = "document"
def perform_create(self, serializer):