takahe/stator/admin.py

21 lines
419 B
Python
Raw Normal View History

from django.contrib import admin
from stator.models import StatorError
@admin.register(StatorError)
class DomainAdmin(admin.ModelAdmin):
list_display = [
"id",
"date",
"model_label",
"instance_pk",
"state",
"error",
]
list_filter = ["model_label", "date"]
ordering = ["-date"]
2022-11-27 16:16:09 -08:00
def has_add_permission(self, request, obj=None):
return False