I am getting error for only emailfield remaining string fields are working fine the Error is
DEBUG:root:<django.forms.fields.EmailField object at 0xa3c9e8c> I am new to django, I am not sure why I am getting that above error. Please help to fix the issue. model.py class Nomination(models.Model): yourname = models.CharField(max_length=30) heroname = models.CharField(max_length=30) heroemail = models.EmailField() comment = models.TextField() form.py class hero(forms.Form): ............. ............ heroemail = forms.EmailField(required=False) - Error happening here. view.py def hero(request): if request.method == 'POST': form = forms.hero(data=request.POST) if form.is_valid(): hero = models.Nomination( ......................... ....................... heroemail = form.cleaned_data['heroemail'], ) hero.save() else: pass return http.HttpResponseRedirect('/member/hero/thankyou/') hero.html <p><input name="HeroEmail" type="text" style="width:227px;" /></p> Thank you Bhaskar -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.