Hi!
I'm playing around with django so I'm far from being an expert. I'm just learning, so keep the explanations simple if possible.
I'm creating a form (extending from forms.Form) and I have a couple of datetime fields in it:
Code:
class ServiceRequestForm(forms.Form):
name = forms.CharField(label="Name", max_length = 255)
description = forms.CharField(label="Description", widget=forms.Textarea)
openingDate = forms.DateTimeField(label="Opening Date", widget=widgets.AdminSplitDateTime)
closingDate = forms.DateTimeField(label="Closing Date", widget=widgets.AdminSplitDateTime)
Now, I'm able to set the initial value for both CharFields, but not the datetime fields. How can I do that?