Code

Ticket #6926: formsets.diff

File formsets.diff, 655 bytes (added by msundstr, 6 years ago)

path formsets.py to fix the ValidationError

Line 
1Index: formsets.py
2===================================================================
3--- formsets.py (revision 7378)
4+++ formsets.py (working copy)
5@@ -53,7 +53,7 @@
6             self._initial_form_count = 0
7             self._total_form_count = self.extra
8         initial = {TOTAL_FORM_COUNT: self._total_form_count, INITIAL_FORM_COUNT: self._initial_form_count}
9-        self.management_form = ManagementForm(initial=initial, auto_id=auto_id, prefix=prefix)
10+        self.management_form = ManagementForm(initial=initial, auto_id=auto_id, prefix=self.prefix)
11 
12         # instantiate all the forms and put them in self.forms
13         self.forms = []