takahe/stator/admin.py

20 lines
377 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",
]
ordering = ["-date"]
2022-11-28 00:16:09 +00:00
def has_add_permission(self, request, obj=None):
return False