diff options
| author | Erik Romijn <eromijn@solidlinks.nl> | 2014-08-23 10:27:33 +0200 |
|---|---|---|
| committer | Erik Romijn <eromijn@solidlinks.nl> | 2014-08-27 09:16:51 +0200 |
| commit | 307eef20e35e78b1e812dc347c6c959e380267cf (patch) | |
| tree | 9b50bb2ae749f7fd3be1865e3e16d31ef8926484 /docs | |
| parent | c13a4c95c1db4c80c84b764888293c408275b384 (diff) | |
[1.7.x] Fixed #23075 -- Added documentation on novalidate attribute and made it default for admin
Backport of cbdda28208c9c2aea479d5a482ff27bf37869d34 from master.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/forms/index.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/topics/forms/index.txt b/docs/topics/forms/index.txt index 857ffaad34..49a0f15c2f 100644 --- a/docs/topics/forms/index.txt +++ b/docs/topics/forms/index.txt @@ -345,6 +345,16 @@ from that ``{{ form }}`` by Django's template language. directly tied to forms in templates, this tag is omitted from the following examples in this document. +.. admonition:: HTML5 input types and browser validation + + If your form includes a :class:`~django.forms.URLField`, an + :class:`~django.forms.EmailField` or any integer field type, Django will + use the ``url``, ``email`` and ``number`` HTML5 input types. By default, + browsers may apply their own validation on these fields, which may be + stricter than Django's validation. If you would like to disable this + behavior, set the `novalidate` attribute on the ``form`` tag, or specify + a different widget on the field, like :class:`TextInput`. + We now have a working web form, described by a Django :class:`Form`, processed by a view, and rendered as an HTML ``<form>``. |
