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:
commit
ea6188c5e3
@ -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)
|
||||
|
@ -6,6 +6,6 @@ class LDPNotificationsPagination(LDPPagination):
|
||||
default_limit = 100
|
||||
|
||||
|
||||
class LDPNotifcationsViewSet(LDPViewSet):
|
||||
class LDPNotificationsViewSet(LDPViewSet):
|
||||
'''overridden LDPViewSet to force pagination'''
|
||||
pagination_class = LDPNotificationsPagination
|
||||
|
Loading…
Reference in New Issue
Block a user