I am now doing my query in the form's clean method, and it errors the
way I want it to. Thank you.
Although, I do feel dirty doing it this way. I feel like I should be
able to append an error to the form in the view.
On Jul 11, 3:04 pm, Andre Terra wrote:
> I feel your pain, validating forms can
I feel your pain, validating forms can be a PITA... Try reading through this
last bit of the form validation docs:
https://docs.djangoproject.com/en/dev/ref/forms/validation/#cleaning-and-validating-fields-that-depend-on-each-other
Cheers,
André Terra
On Mon, Jul 11, 2011 at 6:02 PM, Brian McKe
I have a search form that is used by a view to search for results and
then redirect to display them one at a time. If my search doesn't find
any objects matching the criteria, I'd like to display a message
saying so.
It seems natural to add this error to the search form and redisplay it
since it a
3 matches
Mail list logo