mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-24 10:34:03 +03:00
Reduce diff
This commit is contained in:
parent
a0aefacb1d
commit
c2921b1eca
|
@ -36,6 +36,7 @@ class ListModelMixin:
|
|||
"""
|
||||
def list(self, request, *args, **kwargs):
|
||||
queryset = self.filter_queryset(self.get_queryset())
|
||||
|
||||
page = self.paginate_queryset(queryset)
|
||||
if page is not None:
|
||||
serializer = self.get_serializer(page, many=True)
|
||||
|
|
Loading…
Reference in New Issue
Block a user