I override the __init__ method of my Form.
I can set the initial value by doing the following:
self.fields['fieldname'].initial = ....
But given that it is bound, calling the above has no effect.
I tried doing this:
self.fields['fieldname'].bound_data = ....
but this does not work.
Is there a way to do this ?
You can update the form’s
datadictbound_datais a method, not an attribute, so you can’t set the value there.request.GETandrequest.POSTare immutable, unless you create acopy(). You could do the copy in your__init__method, or before you bind the form.