Fixed bug that caused only 1 remuneration to be saved
authorBenoit C. Sirois <benoit.clennett-sirois@auf.org>
Wed, 27 Feb 2013 21:57:41 +0000 (16:57 -0500)
committerBenoit C. Sirois <benoit.clennett-sirois@auf.org>
Wed, 27 Feb 2013 21:57:41 +0000 (16:57 -0500)
project/dae/forms.py

index 498f308..55cf8bf 100644 (file)
@@ -370,7 +370,9 @@ class GroupedInlineFormset(BaseInlineFormSet):
 
         for g in self.groups:
             for i in xrange(self.extra):
 
         for g in self.groups:
             for i in xrange(self.extra):
-                self.groups[g]['forms'].append(tmp_extras.pop())
+                tmp_form = tmp_extras.pop()
+                self.groups[g]['forms'].append(tmp_form)
+                self.forms.append(tmp_form)
             
 
         # Override form choices with the data provided in
             
 
         # Override form choices with the data provided in