diff options
author | Andrew Godwin | 2022-11-09 22:29:33 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-11-09 22:29:49 -0700 |
commit | 7746abbbb7700fa918450101bbc6d29ed9b4b608 (patch) | |
tree | 8768efd8201faa2fee18e5d3b46f33785002f5d6 /stator/admin.py | |
parent | 61c324508e62bb640b4526183d0837fc57d742c2 (diff) | |
download | takahe-7746abbbb7700fa918450101bbc6d29ed9b4b608.tar.gz takahe-7746abbbb7700fa918450101bbc6d29ed9b4b608.tar.bz2 takahe-7746abbbb7700fa918450101bbc6d29ed9b4b608.zip |
Most of the way through the stator refactor
Diffstat (limited to 'stator/admin.py')
-rw-r--r-- | stator/admin.py | 15 |
1 files changed, 12 insertions, 3 deletions
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"] |