Fix admin.py

This commit is contained in:
3wc 2021-04-07 16:19:39 +02:00
parent 4aa1d000b9
commit 2f6a345e5c

View File

@ -1,12 +1,6 @@
from django.contrib import admin
from djangoldp.admin import DjangoLDPAdmin
from djangoldp.models import Model
from .models import Notification, NotificationSetting, Subscription, VAPIDKeyset
class NotificationSettingAdmin(DjangoLDPAdmin):
ordering = ['urlid']
from .models import VAPIDKeyset
class VAPIDKeysetAdmin(DjangoLDPAdmin):
@ -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)