Merge branch 'master' into dae_ameliorations
[auf_rh_dae.git] / project / dae / views.py
index 5bb783c..9f73050 100644 (file)
@@ -135,7 +135,7 @@ def poste(request, key=None):
         financementForm = FinancementForm(request.POST, instance=poste)
         piecesForm = PostePieceForm(request.POST, request.FILES, instance=poste)
         postesComparaisonsForm = PosteComparaisonForm(request.POST, instance=poste)
-        if form.is_valid() and piecesForm.is_valid() and financementForm.is_valid():
+        if form.is_valid() and piecesForm.is_valid() and financementForm.is_valid() and postesComparaisonsForm.is_valid():
             poste = form.save()
             piecesForm.instance = poste
             piecesForm.save()