Custom widget would be enough
in your forms.py
from django.forms import Input
class EmailInput(Input):
input_type = 'email'
class AddressForm(ModelForm):
contact_email = forms.CharField(widget=EmailInput)
On Apr 9, 11:37 pm, Lee Hinde wrote:
> Thanks. I'll check that out.
>
> On Apr
Thanks. I'll check that out.
On Apr 9, 2012, at 7:32 PM, creecode wrote:
> Ah I see. I haven't looked deeper in the code I'd guess the type is being
> set after you set it deeper in the machinery based on field class? Perhaps a
> custom field could accomplish your goal?
>
> On Monday, April
Ah I see. I haven't looked deeper in the code I'd guess the type is being
set after you set it deeper in the machinery based on field class? Perhaps
a custom field could accomplish your goal?
On Monday, April 9, 2012 7:17:56 PM UTC-7, Lee Hinde wrote:
>
>
> Thanks for the response, Creecode,
>
On Apr 9, 2012, at 6:53 PM, creecode wrote:
> Hello Lee,
>
> On Monday, April 9, 2012 6:14:08 PM UTC-7, Lee Hinde wrote:
>
> I'm trying to edit the field type in a form that is using the html5 doctype.
> I've tried two ways:
>
> Neither works.
>
> Am I looking in the wrong place?
>
> I use
Hello Lee,
On Monday, April 9, 2012 6:14:08 PM UTC-7, Lee Hinde wrote:
I'm trying to edit the field type in a form that is using the html5
> doctype. I've tried two ways:
>
> Neither works.
>
> Am I looking in the wrong place?
>
I use both those techniques and they work great for me. I've use
5 matches
Mail list logo