From 7746abbbb7700fa918450101bbc6d29ed9b4b608 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Wed, 9 Nov 2022 22:29:33 -0700 Subject: Most of the way through the stator refactor --- stator/admin.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'stator/admin.py') diff --git a/stator/admin.py b/stator/admin.py index c04d775..025f225 100644 --- a/stator/admin.py +++ b/stator/admin.py @@ -1,8 +1,17 @@ from django.contrib import admin -from stator.models import StatorTask +from stator.models import StatorError -@admin.register(StatorTask) +@admin.register(StatorError) class DomainAdmin(admin.ModelAdmin): - list_display = ["id", "model_label", "instance_pk", "locked_until"] + list_display = [ + "id", + "date", + "model_label", + "instance_pk", + "from_state", + "to_state", + "error", + ] + ordering = ["-date"] -- cgit v1.2.3