#3869: newforms form.errors.__all__ cannot render
----------------------------------------------------+-----------------------
Reporter: David S. <[EMAIL PROTECTED]> | Owner: adrian
Status: new | Component:
django.newforms
Version: SVN | Keywords:
Stage: Unreviewed | Has_patch: 0
----------------------------------------------------+-----------------------
If you implement a clean method on your newform and raise a validation
error it is keyed on '__all__'.
But, {{ form.errors.__all__ }} raises a template error: "Variables and
attributes may not begin with underscores: 'form.errors.__all__'"
Workaround is to put pass the form level errors the template context
somewhere, e.g. form_errors=search_form.errors.get('__all__', None).
--
Ticket URL: <http://code.djangoproject.com/ticket/3869>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---