Skip to content

Commit a098b4c

Browse files
committed
disabled default form validate attr in templates
1 parent 036c00d commit a098b4c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crudbuilder/templates/crudbuilder/inline/create.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<div class='container'>
2828
<h3>{{actual_model_name|title}}</h3>
2929

30-
<form action="." method="post" enctype="multipart/form-data" class="form-horizontal">
30+
<form action="." method="post" enctype="multipart/form-data" class="form-horizontal" navalidate>
3131
{% csrf_token %}
3232
{% for field in form %}
3333
<fieldset class={% if field.errors %} "form-group has-error" {% else %} "form-group" {% endif %} >

crudbuilder/templates/crudbuilder/widgets/form.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% load crudbuilder %}
22

3-
<form action="." method="post" enctype="multipart/form-data" class="form-horizontal">
3+
<form action="." method="post" enctype="multipart/form-data" class="form-horizontal" novalidate>
44
{% csrf_token %}
55
{% for field in form %}
66
<fieldset class={% if field.errors %} "form-group has-error" {% else %} "form-group" {% endif %} >

0 commit comments

Comments
 (0)