Changes between Initial Version and Version 2 of Ticket #15256
- Timestamp:
- Feb 10, 2011, 2:05:43 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #15256
- Property Resolution → invalid
- Property Status new → closed
-
Ticket #15256 – Description
initial v2 1 1 After the form is posted, if an empty form is generated, it will be completely empty rather than having the initial values specified on the form. I believe we can fix this by modifying `_construct_form` like so: 2 2 {{{ 3 3 if self.is_bound and i < self.initial_form_count(): 4 4 defaults['data'] = self.data 5 5 defaults['files'] = self.files 6 6 }}} 7 7 And completely remove this chunk from _get_empty_form 8 8 {{{ 9 9 if self.is_bound: 10 10 defaults['data'] = self.data 11 11 defaults['files'] = self.files 12 12 }}} 13 13 I don't know why an empty form should behave any differently after the formset has been bound... it only seems to be causing problems.