Skip to content

Commit

Permalink
Add support for novalidate. Closes mbr#140.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbr committed Jun 25, 2016
1 parent 1655418 commit d988f11
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flask_bootstrap/templates/bootstrap/wtf.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@
horizontal_columns=('lg', 2, 10),
enctype=None,
button_map={},
id="") %}
id="",
novalidate=False) %}
{#-
action="" is what we want, from http://www.ietf.org/rfc/rfc2396.txt:

Expand Down Expand Up @@ -194,6 +195,7 @@
"
{%- if _enctype[0] %} enctype="{{_enctype[0]}}"{% endif -%}
{%- if role %} role="{{role}}"{% endif -%}
{%- if novalidate %} novalidate{% endif -%}
>
{{ form.hidden_tag() }}
{{ form_errors(form, hiddens='only') }}
Expand Down

0 comments on commit d988f11

Please sign in to comment.