2022-11-09 06:06:29 +00:00
|
|
|
from django.contrib import admin
|
|
|
|
|
2022-11-10 05:29:33 +00:00
|
|
|
from stator.models import StatorError
|
2022-11-09 06:06:29 +00:00
|
|
|
|
|
|
|
|
2022-11-10 05:29:33 +00:00
|
|
|
@admin.register(StatorError)
|
2022-11-09 06:06:29 +00:00
|
|
|
class DomainAdmin(admin.ModelAdmin):
|
2022-11-10 05:29:33 +00:00
|
|
|
list_display = [
|
|
|
|
"id",
|
|
|
|
"date",
|
|
|
|
"model_label",
|
|
|
|
"instance_pk",
|
2022-11-10 06:48:31 +00:00
|
|
|
"state",
|
2022-11-10 05:29:33 +00:00
|
|
|
"error",
|
|
|
|
]
|
2022-12-08 17:29:51 +00:00
|
|
|
list_filter = ["model_label", "date"]
|
2022-11-10 05:29:33 +00:00
|
|
|
ordering = ["-date"]
|
2022-11-28 00:16:09 +00:00
|
|
|
|
|
|
|
def has_add_permission(self, request, obj=None):
|
|
|
|
return False
|