diff options
author | Andrew Godwin | 2022-12-15 12:26:17 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-12-15 12:26:44 -0700 |
commit | 1130c23b1e6bb1e4db71c41f5e4add903267830e (patch) | |
tree | 855b93bb481d43a6aa1f4520df8405ad1a7ea3ff /stator/admin.py | |
parent | 5e912ecac5aa39f2d5dbecee792665d5743a77b9 (diff) | |
download | takahe-1130c23b1e6bb1e4db71c41f5e4add903267830e.tar.gz takahe-1130c23b1e6bb1e4db71c41f5e4add903267830e.tar.bz2 takahe-1130c23b1e6bb1e4db71c41f5e4add903267830e.zip |
Stator stats overhaul
Removes the error table, adds a stats table and admin page.
Fixes #166
Diffstat (limited to 'stator/admin.py')
-rw-r--r-- | stator/admin.py | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/stator/admin.py b/stator/admin.py index 2d001ea..d22fd1b 100644 --- a/stator/admin.py +++ b/stator/admin.py @@ -1,20 +1,15 @@ from django.contrib import admin -from stator.models import StatorError +from stator.models import Stats -@admin.register(StatorError) +@admin.register(Stats) class DomainAdmin(admin.ModelAdmin): list_display = [ - "id", - "date", "model_label", - "instance_pk", - "state", - "error", + "updated", ] - list_filter = ["model_label", "date"] - ordering = ["-date"] + ordering = ["model_label"] def has_add_permission(self, request, obj=None): return False |