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 = "" 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))