diff --git a/avisstage/views.py b/avisstage/views.py index 4e0dfa5..2e3d5d1 100644 --- a/avisstage/views.py +++ b/avisstage/views.py @@ -125,7 +125,8 @@ def manage_stage(request, pk=None): avis_lieu_formset.save() print request.POST if "continuer" in request.POST: - pass + if pk is None: + return redirect(reverse('avisstage:stage_edit',kwargs={'pk':stage.id})) else: return redirect(reverse('avisstage:stage', kwargs={'pk':stage.id}))