Fix 'at' property for transfergroups
This commit is contained in:
parent
36dc6439a8
commit
6d36d50e9a
1 changed files with 3 additions and 1 deletions
|
@ -147,7 +147,6 @@ class Command(BaseCommand):
|
||||||
comment = ""
|
comment = ""
|
||||||
|
|
||||||
transfergroup = TransferGroup(
|
transfergroup = TransferGroup(
|
||||||
at=at,
|
|
||||||
comment=comment,
|
comment=comment,
|
||||||
valid_by=random.choice(accounts)
|
valid_by=random.choice(accounts)
|
||||||
)
|
)
|
||||||
|
@ -164,6 +163,9 @@ class Command(BaseCommand):
|
||||||
transfer.save()
|
transfer.save()
|
||||||
transfers += 1
|
transfers += 1
|
||||||
|
|
||||||
|
transfergroup.at = at
|
||||||
|
transfergroup.save()
|
||||||
|
|
||||||
self.stdout.write(
|
self.stdout.write(
|
||||||
"- {:d} opérations créées dont {:d} commandes d'articles"
|
"- {:d} opérations créées dont {:d} commandes d'articles"
|
||||||
.format(opes_created, purchases))
|
.format(opes_created, purchases))
|
||||||
|
|
Loading…
Reference in a new issue