🔥(teams) remove pagination of teams listing

For frontend pagination is useless for teams,
so we remove it.
This commit is contained in:
Sabrina Demagny
2024-10-29 10:51:13 +01:00
committed by Nathan Panchout
parent a42e7a10db
commit 7d695ab81c
3 changed files with 12 additions and 57 deletions

View File

@@ -246,6 +246,7 @@ class TeamViewSet(
ordering_fields = ["created_at"]
ordering = ["-created_at"]
queryset = models.Team.objects.all()
pagination_class = None
def get_queryset(self):
"""Custom queryset to get user related teams."""