forked from DGNum/gestioCOF
correct return value for get_or_create
This commit is contained in:
parent
3b318cf623
commit
b692b92f74
1 changed files with 3 additions and 3 deletions
|
@ -78,14 +78,14 @@ class Command(MyBaseCommand):
|
||||||
|
|
||||||
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,
|
||||||
trigramme='LIQ')
|
trigramme='LIQ')
|
||||||
|
|
||||||
# ---
|
# ---
|
||||||
# Caisse
|
# Caisse
|
||||||
# ---
|
# ---
|
||||||
|
|
||||||
checkout = Checkout.objects.get_or_create(
|
checkout, _ = Checkout.objects.get_or_create(
|
||||||
created_by=Account.objects.get(trigramme='000'),
|
created_by=Account.objects.get(trigramme='000'),
|
||||||
name='Chaudron',
|
name='Chaudron',
|
||||||
valid_from=timezone.now(),
|
valid_from=timezone.now(),
|
||||||
|
|
Loading…
Reference in a new issue