From e6c90fc5d3e70d68bbe6a1c252182d6cea6e1490 Mon Sep 17 00:00:00 2001 From: Calum Mackervoy Date: Wed, 26 Aug 2020 09:17:10 +0000 Subject: [PATCH] syntax: fixed typo in viewset name --- djangoldp_notification/models.py | 4 ++-- djangoldp_notification/views.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/djangoldp_notification/models.py b/djangoldp_notification/models.py index 37486f5..44aba25 100644 --- a/djangoldp_notification/models.py +++ b/djangoldp_notification/models.py @@ -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) diff --git a/djangoldp_notification/views.py b/djangoldp_notification/views.py index 3644ac7..2ce7d6f 100644 --- a/djangoldp_notification/views.py +++ b/djangoldp_notification/views.py @@ -6,6 +6,6 @@ class LDPNotificationsPagination(LDPPagination): default_limit = 100 -class LDPNotifcationsViewSet(LDPViewSet): +class LDPNotificationsViewSet(LDPViewSet): '''overridden LDPViewSet to force pagination''' pagination_class = LDPNotificationsPagination