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 >
> wrote:
> > Hi all,
> >
> > I've created a ModelForm and am attempting to use it, but al
On Wed, Apr 3, 2013 at 12:14 AM, Nick D 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
widget
Thanks for your reply.
The Django documenation for ModelForm states that a DateField should create
a DateField form object.
DateFieldDateFieldDateTimeFieldDateTimeField
https://docs.djangoproject.com/en/dev/topics/forms/modelforms/
On Tuesday, April 2, 2013 9:23:47 PM UTC-7, sacrac wrote:
yes that is correct maybe you want to use a datepicker
http://jqueryui.com/datepicker/
Cheers
On Tue, Apr 2, 2013 at 5:14 PM, Nick D 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. C
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?
MODEL:
class GIS_WO(models.Model):
WON = models.CharField(max_length=7, blank=True, null=True)
status
5 matches
Mail list logo