save & continue fix
authorOlivier Larchevêque <olivier.larcheveque@auf.org>
Fri, 6 May 2011 15:28:32 +0000 (11:28 -0400)
committerOlivier Larchevêque <olivier.larcheveque@auf.org>
Fri, 6 May 2011 15:28:32 +0000 (11:28 -0400)
project/dae/views.py

index 6c736f1..0cc893d 100644 (file)
@@ -75,7 +75,7 @@ def poste(request, key=None):
         form = PosteForm(data, instance=poste, request=request)
         financementForm = FinancementForm(request.POST, instance=poste)
         piecesForm = PostePieceForm(request.POST, request.FILES, instance=poste)
-        if 'save' in data and form.is_valid() and piecesForm.is_valid() and financementForm.is_valid():
+        if form.is_valid() and piecesForm.is_valid() and financementForm.is_valid():
             poste = form.save()
             piecesForm.instance = poste
             piecesForm.save()