Fixed bug that caused only 1 remuneration to be saved
[auf_rh_dae.git] / 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):
-                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