mirror of
https://github.com/suitenumerique/docs.git
synced 2026-08-17 21:25:43 +02:00
👔(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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user