correct return value for get_or_create

This commit is contained in:
Ludovic Stephan 2017-02-08 15:32:05 -02:00
parent 3b318cf623
commit b692b92f74

View file

@ -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,
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(),