Re: Template not displaying validation errors [solved]

2010-05-05 Thread mhulse
Hi Karen! Thanks so much for your quick reply, I really appreciate it. :) > form.is_valid() is what annotates the existing form with error information > in the case where there are errrors. However, if form.is_valid() returns > False, the code here immediately overwrites the existing (now annotate

Re: Template not displaying validation errors

2010-05-05 Thread Karen Tracey
On Wed, May 5, 2010 at 6:04 PM, mhulse wrote: >if form.is_valid(): # All validation rules pass. > ># Q objects/pagination here... > >else: > >form = SearchForm() > form.is_valid() is what annotates the existing form

Template not displaying validation errors

2010-05-05 Thread mhulse
Hi, I have spent half the day googling and testing my code with no luck getting an error message to appear via my template. I am hoping ya'll could provide a little assistance. :) forms.py: class SearchForm(forms.Form): q = forms.CharField( max_length = 128,