Skip to content

Commit 0bacca3

Browse files
committed
👔(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.
1 parent f5a7fde commit 0bacca3

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/backend/core/api/viewsets.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2946,9 +2946,7 @@ class ThreadViewSet(
29462946
permission_classes = [permissions.CommentPermission]
29472947
pagination_class = None
29482948
serializer_class = serializers.ThreadSerializer
2949-
queryset = models.Thread.objects.select_related("creator", "document").filter(
2950-
resolved=False
2951-
)
2949+
queryset = models.Thread.objects.select_related("creator", "document")
29522950
resource_field_name = "document"
29532951

29542952
def perform_create(self, serializer):

0 commit comments

Comments
 (0)