fix poste comparaison
authorOlivier Larchevêque <olivier.larcheveque@gmail.com>
Tue, 23 Aug 2011 19:07:30 +0000 (15:07 -0400)
committerOlivier Larchevêque <olivier.larcheveque@gmail.com>
Tue, 23 Aug 2011 19:07:30 +0000 (15:07 -0400)
project/dae/views.py

index ea30ed6..d4eaefd 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()