Establishment add pagination

This commit is contained in:
evgeniy-st 2019-08-28 15:41:17 +03:00
parent 0f748ec714
commit e5989273dc

View File

@ -7,7 +7,6 @@ from utils.views import JWTGenericViewMixin
class EstablishmentListView(JWTGenericViewMixin, generics.ListAPIView):
"""Resource for getting a list of establishments."""
pagination_class = None
permission_classes = (permissions.AllowAny,)
serializer_class = serializers.EstablishmentSerializer
queryset = models.Establishment.objects.all()
@ -16,7 +15,6 @@ class EstablishmentListView(JWTGenericViewMixin, generics.ListAPIView):
class EstablishmentTypeListView(JWTGenericViewMixin, generics.ListAPIView):
"""Resource for getting a list of establishment types."""
pagination_class = None
permission_classes = (permissions.AllowAny,)
serializer_class = serializers.EstablishmentTypeSerializer
queryset = models.EstablishmentType.objects.all()