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