From 29d7654052740fa0d41c6d1942d5b9011233d52f Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Sat, 18 Mar 2017 18:02:33 -0300 Subject: [PATCH] Root kfet account --- kfet/management/commands/loadkfetdevdata.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/kfet/management/commands/loadkfetdevdata.py b/kfet/management/commands/loadkfetdevdata.py index 328a50a4..8fa974df 100644 --- a/kfet/management/commands/loadkfetdevdata.py +++ b/kfet/management/commands/loadkfetdevdata.py @@ -93,6 +93,14 @@ class Command(MyBaseCommand): liq_account, _ = Account.objects.get_or_create(cofprofile=liq_profile, trigramme='LIQ') + # Root account if existing + + root_profile = CofProfile.objects.filter(user__username='root') + if root_profile.exists(): + root_profile = root_profile.get() + Account.objects.get_or_create(cofprofile=root_profile, + trigramme='AAA') + # --- # Caisse # ---