On Apr 14, 8:51 pm, grimmus <graham.col...@gmail.com> 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 > form instead of the model ? > > Thanks alot. >
I can't really understand what you're not getting here. Model fields go on the model, form fields go in the form. class ContactEnquiry(models.Model): .... blah .... enquiry = models.CharField(max_length=100) class ContactForm(ModelForm): enquiry = forms.CharField(widget=forms.Textarea) Or, if you use a TextField in the model, you will automatically get a Textarea in the form and you won't need to override the field in the form. -- DR. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---