Merge branch 'Aufinal/fix-revente-transfer' into 'master'

Fix le transfert des reventes

See merge request cof-geek/gestioCOF!302
This commit is contained in:
Martin Pepin 2018-05-30 10:19:16 +02:00
commit 96416bffea

View file

@ -410,7 +410,7 @@ def revente_manage(request, tirage_id):
soldform = SoldForm(participant, request.POST, prefix='sold')
if soldform.is_valid():
reventes = soldform.cleaned_data['reventes']
for reventes in reventes:
for revente in reventes:
revente.attribution.participant = revente.soldTo
revente.attribution.save()