Skip to content

Commit 7511c6d

Browse files
Merge pull request #740 from python-discord/update-django
Update Django Version To 4.0
2 parents ca6fca5 + 060a5d8 commit 7511c6d

File tree

17 files changed

+268
-952
lines changed

17 files changed

+268
-952
lines changed

poetry.lock

Lines changed: 243 additions & 183 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pydis_site/apps/api/pagination.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import typing
2-
31
from rest_framework.pagination import LimitOffsetPagination
42
from rest_framework.response import Response
3+
from rest_framework.utils.serializer_helpers import ReturnList
54

65

76
class LimitOffsetPaginationExtended(LimitOffsetPagination):
@@ -44,6 +43,6 @@ class LimitOffsetPaginationExtended(LimitOffsetPagination):
4443

4544
default_limit = 100
4645

47-
def get_paginated_response(self, data: typing.Any) -> Response:
46+
def get_paginated_response(self, data: ReturnList) -> Response:
4847
"""Override to skip metadata i.e. `count`, `next`, and `previous`."""
4948
return Response(data)

pydis_site/apps/api/tests/migrations/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

pydis_site/apps/api/tests/migrations/base.py

Lines changed: 0 additions & 102 deletions
This file was deleted.

0 commit comments

Comments
 (0)