From 828bc52f800c67ecd4dd88808406adacefcd9327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Wed, 12 Dec 2018 18:16:28 +0200 Subject: [PATCH] Admin tweaks --- hc/api/admin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hc/api/admin.py b/hc/api/admin.py index 7d299127..52288ac4 100644 --- a/hc/api/admin.py +++ b/hc/api/admin.py @@ -201,7 +201,9 @@ class NotificationsAdmin(admin.ModelAdmin): @admin.register(Flip) class FlipsAdmin(admin.ModelAdmin): - list_display = ("id", "created", "check_name", "old_status", "new_status") + list_display = ("id", "created", "processed", "check_name", "old_status", + "new_status") + raw_id_fields = ("owner", ) def check_name(self, obj): return obj.owner.name if obj.owner.name else obj.owner.code