mirror of
https://github.com/suitenumerique/docs.git
synced 2026-09-26 19:45:01 +02:00
♻️(backend) do not paginate threads list response
The threads list action was paginated its response. this is not the behavior we want. all threads should be loaded when the document is loaded.
This commit is contained in:
@@ -2757,7 +2757,7 @@ class ThreadViewSet(
|
||||
"""Thread API: list/create threads and nested comment operations."""
|
||||
|
||||
permission_classes = [permissions.CommentPermission]
|
||||
pagination_class = Pagination
|
||||
pagination_class = None
|
||||
serializer_class = serializers.ThreadSerializer
|
||||
queryset = models.Thread.objects.select_related("creator", "document").filter(
|
||||
resolved=False
|
||||
|
||||
Reference in New Issue
Block a user