Re: textarea in ModelForm

2009-04-14 Thread Daniel Roseman
On Apr 14, 8:51 pm, grimmus wrote: > Thanks for the reply Alex, > > I am not really sure how i am supposed to override the default field > type. > > The link talks about MyDateFormField() but is this a method or what ? > > Could you provide an example of how i could put the form field on the > fo

Re: textarea in ModelForm

2009-04-14 Thread grimmus
Thanks for the reply Alex, I am not really sure how i am supposed to override the default field type. The link talks about MyDateFormField() but is this a method or what ? Could you provide an example of how i could put the form field on the form instead of the model ? Thanks alot. On Apr 6,

Re: textarea in ModelForm

2009-04-06 Thread Alex Gaynor
On Mon, Apr 6, 2009 at 3:46 PM, grimmus wrote: > > Thanks for the reply. > > I dont get an error anymore but nothing appears now, not even a > textbox ! Please see my model below > > from django.db import models > from django import forms > from django.forms import ModelForm > > import datetime >

Re: textarea in ModelForm

2009-04-06 Thread grimmus
Thanks for the reply. I dont get an error anymore but nothing appears now, not even a textbox ! Please see my model below from django.db import models from django import forms from django.forms import ModelForm import datetime ENQUIRY_TYPES = ( ('Allergy Testing','Allergy Testing'), ('

Re: textarea in ModelForm

2009-04-06 Thread Alex Gaynor
On Mon, Apr 6, 2009 at 2:04 PM, grimmus wrote: > > Hi, > > I am trying to create a text area for a form that is generated through > ModelForm. > > The field i have is > > enquiry = models.CharField(widget=models.Textarea) > > but i get the error > > 'module' object has no attribute 'Textarea' > >