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
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
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,
3 matches
Mail list logo