From 5696c02ac319657c262a00250aff46aef341a3c2 Mon Sep 17 00:00:00 2001 From: jonaswinkler Date: Sat, 6 Feb 2021 17:00:06 +0100 Subject: [PATCH] remove log admin --- src/documents/admin.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/documents/admin.py b/src/documents/admin.py index 78437f91c..266422d51 100755 --- a/src/documents/admin.py +++ b/src/documents/admin.py @@ -116,22 +116,6 @@ class DocumentAdmin(admin.ModelAdmin): return format_html("<{} {}/>", kind, attributes) -class LogAdmin(admin.ModelAdmin): - - def has_add_permission(self, request): - return False - - def has_change_permission(self, request, obj=None): - return False - - list_display = ("created", "message", "level",) - list_filter = ("level", "created",) - - ordering = ('-created',) - - list_display_links = ("created", "message") - - class RuleInline(admin.TabularInline): model = SavedViewFilterRule @@ -149,5 +133,4 @@ admin.site.register(Correspondent, CorrespondentAdmin) admin.site.register(Tag, TagAdmin) admin.site.register(DocumentType, DocumentTypeAdmin) admin.site.register(Document, DocumentAdmin) -admin.site.register(Log, LogAdmin) admin.site.register(SavedView, SavedViewAdmin)