Merge branch 'notifications-pagination' into 'master'

syntax: fixed typo in viewset name

See merge request djangoldp-packages/djangoldp-notification!32
This commit is contained in:
Jean-Baptiste Pasquier 2020-08-26 09:17:10 +00:00
commit ea6188c5e3
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ from djangoldp.models import Model
from threading import Thread
from djangoldp_notification.middlewares import MODEL_MODIFICATION_USER_FIELD
from djangoldp_notification.permissions import InboxPermissions, SubscriptionsPermissions
from djangoldp_notification.views import LDPNotifcationsViewSet
from djangoldp_notification.views import LDPNotificationsViewSet
class Notification(Model):
@ -33,7 +33,7 @@ class Notification(Model):
anonymous_perms = ['add']
authenticated_perms = ['inherit']
owner_perms = ['view', 'change', 'control']
view_set = LDPNotifcationsViewSet
view_set = LDPNotificationsViewSet
def __str__(self):
return '{}'.format(self.type)

View File

@ -6,6 +6,6 @@ class LDPNotificationsPagination(LDPPagination):
default_limit = 100
class LDPNotifcationsViewSet(LDPViewSet):
class LDPNotificationsViewSet(LDPViewSet):
'''overridden LDPViewSet to force pagination'''
pagination_class = LDPNotificationsPagination