It is true that I was accessing the error message incorrectly in
python - it should be
my_form.errors['date'] and it is set. However the doc says you can
access that same value with form.name_of_field.errors in a template
like this:
{{ form.date.errors }}
Date:
{{
On Wed, 2009-02-04 at 11:23 -0800, adrian wrote:
>
> I'm using the standard pattern for handling a POST request form
> submission, even though the form is submitted by JavaScript as an
> XMLHttpRequest, and the date validation is not working. I added some
> logging statements to find the prob
I'm using the standard pattern for handling a POST request form
submission, even though the form is submitted by JavaScript as an
XMLHttpRequest, and the date validation is not working. I added some
logging statements to find the problem and I get the error message
"MyModelForm' object has no
3 matches
Mail list logo