Fix 'at' property for transfergroups

This commit is contained in:
Ludovic Stephan 2017-03-20 01:56:59 -03:00
parent 36dc6439a8
commit 6d36d50e9a

View file

@ -147,7 +147,6 @@ class Command(BaseCommand):
comment = ""
transfergroup = TransferGroup(
at=at,
comment=comment,
valid_by=random.choice(accounts)
)
@ -164,6 +163,9 @@ class Command(BaseCommand):
transfer.save()
transfers += 1
transfergroup.at = at
transfergroup.save()
self.stdout.write(
"- {:d} opérations créées dont {:d} commandes d'articles"
.format(opes_created, purchases))