diff --git a/djangoldp_webpushnotification/admin.py b/djangoldp_webpushnotification/admin.py index f4f8c45..bda33a1 100644 --- a/djangoldp_webpushnotification/admin.py +++ b/djangoldp_webpushnotification/admin.py @@ -1,14 +1,8 @@ from django.contrib import admin from djangoldp.admin import DjangoLDPAdmin -from djangoldp.models import Model -from .models import Notification, NotificationSetting, Subscription, VAPIDKeyset - - +from .models import VAPIDKeyset + -class NotificationSettingAdmin(DjangoLDPAdmin): - ordering = ['urlid'] - - class VAPIDKeysetAdmin(DjangoLDPAdmin): readonly_fields = ('public_key_view', 'private_key_view') @@ -18,7 +12,5 @@ class VAPIDKeysetAdmin(DjangoLDPAdmin): def private_key_view(self, obj): return obj.private_key.tobytes() -admin.site.register(Notification, NotificationAdmin) -admin.site.register(Subscription, SubscriptionAdmin) -admin.site.register(NotificationSetting, NotificationSettingAdmin) -admin.site.register(VAPIDKeyset, VAPIDKeysetAdmin) \ No newline at end of file + +admin.site.register(VAPIDKeyset, VAPIDKeysetAdmin)