This repository has been archived on 2023-09-24. You can view files and clone it, but cannot push or open issues or pull requests.
takahe/stator/admin.py
2022-12-08 10:29:51 -07:00

21 lines
419 B
Python

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"]
def has_add_permission(self, request, obj=None):
return False