Changes between Initial Version and Version 1 of Ticket #22208, comment 2


Ignore:
Timestamp:
04/15/2014 02:50:29 PM (15 months ago)
Author:
gabrielbrasil
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22208, comment 2

    initial v1  
    771) Running "form = add_event(data=data)" and "form = add_event(data)" is the same.
    882) 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{{{
    910    data['start_date_0'] = '2014-04-15'
    1011    data['start_date_1'] = '07:33 PM'
    1112    form = add_event(data=data)
     13}}}
    1214
    1315This does work as expected. But for your case, you do want to pass that dictionary to "initial".
Back to Top