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