1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #22318 -- Added Form.has_error() to easily check if a given error has happened.

This commit is contained in:
Loic Bistuer
2014-03-23 01:08:04 +07:00
committed by Tim Graham
parent 3f7615cddc
commit 7ac8380799
4 changed files with 57 additions and 0 deletions

View File

@@ -109,6 +109,9 @@ Forms
* Form widgets now render attributes with a value of ``True`` or ``False``
as HTML5 boolean attributes.
* The new :meth:`~django.forms.Form.has_error()` method allows checking
if a specific error has happened.
Internationalization
^^^^^^^^^^^^^^^^^^^^