Skip to content

Commit

Permalink
minor change to admin ui
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmurilo75 committed Mar 18, 2024
1 parent 2d89e01 commit fd5ba26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions negligent_octopus/core/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -61,8 +61,8 @@ class TransactionAdmin(admin.ModelAdmin):
]
readonly_fields = ["balance"]
list_display = [
"account",
"get_account_owner",
"account",
"title",
"amount",
"timestamp",
Expand Down

0 comments on commit fd5ba26

Please sign in to comment.