syntax: fixed typo in viewset name
This commit is contained in:
parent
37dc728e0a
commit
e6c90fc5d3
@ -14,7 +14,7 @@ from djangoldp.models import Model
|
|||||||
from threading import Thread
|
from threading import Thread
|
||||||
from djangoldp_notification.middlewares import MODEL_MODIFICATION_USER_FIELD
|
from djangoldp_notification.middlewares import MODEL_MODIFICATION_USER_FIELD
|
||||||
from djangoldp_notification.permissions import InboxPermissions, SubscriptionsPermissions
|
from djangoldp_notification.permissions import InboxPermissions, SubscriptionsPermissions
|
||||||
from djangoldp_notification.views import LDPNotifcationsViewSet
|
from djangoldp_notification.views import LDPNotificationsViewSet
|
||||||
|
|
||||||
|
|
||||||
class Notification(Model):
|
class Notification(Model):
|
||||||
@ -33,7 +33,7 @@ class Notification(Model):
|
|||||||
anonymous_perms = ['add']
|
anonymous_perms = ['add']
|
||||||
authenticated_perms = ['inherit']
|
authenticated_perms = ['inherit']
|
||||||
owner_perms = ['view', 'change', 'control']
|
owner_perms = ['view', 'change', 'control']
|
||||||
view_set = LDPNotifcationsViewSet
|
view_set = LDPNotificationsViewSet
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return '{}'.format(self.type)
|
return '{}'.format(self.type)
|
||||||
|
@ -6,6 +6,6 @@ class LDPNotificationsPagination(LDPPagination):
|
|||||||
default_limit = 100
|
default_limit = 100
|
||||||
|
|
||||||
|
|
||||||
class LDPNotifcationsViewSet(LDPViewSet):
|
class LDPNotificationsViewSet(LDPViewSet):
|
||||||
'''overridden LDPViewSet to force pagination'''
|
'''overridden LDPViewSet to force pagination'''
|
||||||
pagination_class = LDPNotificationsPagination
|
pagination_class = LDPNotificationsPagination
|
||||||
|
Loading…
Reference in New Issue
Block a user