Hotfix : enregistrer et continuer à modifier provoquait une déduplication des stages

This commit is contained in:
Robin Champenois 2017-05-17 13:14:43 +02:00
parent 367dead150
commit 623c6a32d0

View file

@ -125,7 +125,8 @@ def manage_stage(request, pk=None):
avis_lieu_formset.save() avis_lieu_formset.save()
print request.POST print request.POST
if "continuer" in request.POST: if "continuer" in request.POST:
pass if pk is None:
return redirect(reverse('avisstage:stage_edit',kwargs={'pk':stage.id}))
else: else:
return redirect(reverse('avisstage:stage', return redirect(reverse('avisstage:stage',
kwargs={'pk':stage.id})) kwargs={'pk':stage.id}))