summaryrefslogtreecommitdiffstats
path: root/stator/admin.py
blob: 2d001ead6c961df41720c3b5206619c062d6b892 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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