mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-22 15:21:01 +00:00
19 lines
377 B
Python
19 lines
377 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",
|
|
]
|
|
ordering = ["-date"]
|
|
|
|
def has_add_permission(self, request, obj=None):
|
|
return False
|