From 725c097ec7308411f989e24a423e132ad31e784c Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sun, 30 Oct 2022 17:58:42 +0100 Subject: [PATCH] Update admin --- src/character/admin.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/character/admin.py b/src/character/admin.py index 7b97562..99fab80 100644 --- a/src/character/admin.py +++ b/src/character/admin.py @@ -108,11 +108,20 @@ class CharacterAdmin(admin.ModelAdmin): ), ("Vitalité", {"fields": ["health_max", "health_remaining"]}), ("Défense", {"fields": ["armor", "shield", "defense_misc", "defense"]}), - ("Armes & équipement", {"fields": ["weapons", "equipment"]}), + ( + "Armes & équipement", + { + "fields": [ + "weapons", + "equipment", + ("money_pp", "money_po", "money_pa", "money_pc"), + ] + }, + ), ("Race", {"fields": ["racial_capability"]}), ("Capacités", {"fields": ["capabilities"]}), ("Chance", {"fields": ["luck_points_max", "luck_points_remaining"]}), - ("Mana", {"fields": ["mana_max", "mana_consumed", "mana_remaining"]}), + ("Mana", {"fields": ["mana_max", "mana_remaining"]}), ("Notes", {"fields": ["notes"]}), ] readonly_fields = [