djangoldp-notification/djangoldp_notification/views.py
2020-11-30 11:14:14 +00:00

13 lines
321 B
Python

from djangoldp.views import LDPViewSet
from djangoldp.pagination import LDPPagination
class LDPNotificationsPagination(LDPPagination):
default_limit = 40
class LDPNotificationsViewSet(LDPViewSet):
'''overridden LDPViewSet to force pagination'''
pagination_class = LDPNotificationsPagination
depth = 0