From fd5ba26e4f03880f4f3946b4c8a44e15dab82b13 Mon Sep 17 00:00:00 2001 From: Murilo Rosa Date: Mon, 18 Mar 2024 22:57:27 +0000 Subject: [PATCH] minor change to admin ui --- negligent_octopus/core/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/negligent_octopus/core/admin.py b/negligent_octopus/core/admin.py index b85152b..f4fed63 100644 --- a/negligent_octopus/core/admin.py +++ b/negligent_octopus/core/admin.py @@ -36,7 +36,7 @@ def get_formset(self, *args, **kwargs): @admin.register(Account) class AccountAdmin(admin.ModelAdmin): - fields = ["name", "owner", "initial_balance"] + fields = ["name", "owner", "initial_balance", "balance"] list_display = ["name", "owner", "balance", "created", "is_removed"] search_fields = ["name", "owner__username"] list_filter = [ @@ -61,8 +61,8 @@ class TransactionAdmin(admin.ModelAdmin): ] readonly_fields = ["balance"] list_display = [ - "account", "get_account_owner", + "account", "title", "amount", "timestamp",