I see. The difference between the form item and a widget was confusing me.
 
Thanks Tom!
 
-Nick

On Wednesday, April 3, 2013 8:54:40 AM UTC-7, Tom Evans wrote:

> On Wed, Apr 3, 2013 at 12:14 AM, Nick D <[email protected]<javascript:>> 
> wrote: 
> > Hi all, 
> > 
> > I've created a ModelForm and am attempting to use it, but all of my date 
> > fields are coming up with type "text" instead of a datepicker. Can 
> anybody 
> > tell me what's going on? 
> > 
>
> DateField forms are still represented by a simple <input type="text"> 
> widget. The fact it is a DateField form field means that in python it 
> will validate and coerce the data into a datetime.date instance, 
> rather than a raw string. 
>
> If you want to use a different widget, you will need to specify a 
> different widget when creating the field, or in Meta options, 
> depending on how you are defining your form. 
>
> Cheers 
>
> Tom 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to