2020-08-13 15:42:07 +00:00
|
|
|
from djangoldp.views import LDPViewSet
|
|
|
|
from djangoldp.pagination import LDPPagination
|
|
|
|
|
|
|
|
|
|
|
|
class LDPNotificationsPagination(LDPPagination):
|
2020-11-30 11:14:14 +00:00
|
|
|
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
|
2020-11-28 19:16:29 +00:00
|
|
|
depth = 0
|