Log messages

This commit is contained in:
Ludovic Stephan 2017-03-18 19:02:08 -03:00
parent 47b7d934e0
commit 51fba4da21

View file

@ -88,6 +88,7 @@ class Command(MyBaseCommand):
# Compte liquide # Compte liquide
self.stdout.write("Création du compte liquide")
liq_user, _ = User.objects.get_or_create(username='liquide') liq_user, _ = User.objects.get_or_create(username='liquide')
liq_profile, _ = CofProfile.objects.get_or_create(user=liq_user) liq_profile, _ = CofProfile.objects.get_or_create(user=liq_user)
liq_account, _ = Account.objects.get_or_create(cofprofile=liq_profile, liq_account, _ = Account.objects.get_or_create(cofprofile=liq_profile,
@ -97,6 +98,7 @@ class Command(MyBaseCommand):
root_profile = CofProfile.objects.filter(user__username='root') root_profile = CofProfile.objects.filter(user__username='root')
if root_profile.exists(): if root_profile.exists():
self.stdout.write("Création du compte K-Fêt root")
root_profile = root_profile.get() root_profile = root_profile.get()
Account.objects.get_or_create(cofprofile=root_profile, Account.objects.get_or_create(cofprofile=root_profile,
trigramme='AAA') trigramme='AAA')