From b692b92f74e97eb01e67ddd49989f214de34afde Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Wed, 8 Feb 2017 15:32:05 -0200 Subject: [PATCH] correct return value for get_or_create --- kfet/management/commands/loadkfetdevdata.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kfet/management/commands/loadkfetdevdata.py b/kfet/management/commands/loadkfetdevdata.py index 14f72417..58be66da 100644 --- a/kfet/management/commands/loadkfetdevdata.py +++ b/kfet/management/commands/loadkfetdevdata.py @@ -78,14 +78,14 @@ class Command(MyBaseCommand): liq_user, _ = User.objects.get_or_create(username='liquide') liq_profile, _ = CofProfile.objects.get_or_create(user=liq_user) - liq_account = Account.objects.get_or_create(cofprofile=liq_profile, - trigramme='LIQ') + liq_account, _ = Account.objects.get_or_create(cofprofile=liq_profile, + trigramme='LIQ') # --- # Caisse # --- - checkout = Checkout.objects.get_or_create( + checkout, _ = Checkout.objects.get_or_create( created_by=Account.objects.get(trigramme='000'), name='Chaudron', valid_from=timezone.now(),