djangoldp-notification/djangoldp_notification/views.py

13 lines
321 B
Python
Raw Normal View History

2020-08-13 15:42:07 +00:00
from djangoldp.views import LDPViewSet
from djangoldp.pagination import LDPPagination
class LDPNotificationsPagination(LDPPagination):
default_limit = 40
2020-08-13 15:42:07 +00:00
2020-08-26 09:17:10 +00:00
class LDPNotificationsViewSet(LDPViewSet):
2020-08-13 15:42:07 +00:00
'''overridden LDPViewSet to force pagination'''
pagination_class = LDPNotificationsPagination
depth = 0