Changes between Initial Version and Version 1 of Ticket #22208, comment 2
- Timestamp:
- Apr 15, 2014, 2:50:29 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22208, comment 2
initial v1 7 7 1) Running "form = add_event(data=data)" and "form = add_event(data)" is the same. 8 8 2) The "initial" and "data" arguments are different: initial should receive values to be used when first rendering the form, and the data is not validated. "data" argument is used with the data that came from a submitted form. When the form is submitted, the date and time are split like this: 9 {{{ 9 10 data['start_date_0'] = '2014-04-15' 10 11 data['start_date_1'] = '07:33 PM' 11 12 form = add_event(data=data) 13 }}} 12 14 13 15 This does work as expected. But for your case, you do want to pass that dictionary to "initial".