Merge branch 'master' into dae_ameliorations
authorOlivier Larchevêque <olivier.larcheveque@gmail.com>
Tue, 23 Aug 2011 19:07:58 +0000 (15:07 -0400)
committerOlivier Larchevêque <olivier.larcheveque@gmail.com>
Tue, 23 Aug 2011 19:07:58 +0000 (15:07 -0400)
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()