Skip to content

Commit 4b70360

Browse files
committed
novalidate in get questions
1 parent 8aab72f commit 4b70360

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

static/website/templates/get-question.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ <h4><u>Answers:</u></h4>
190190

191191
<!-- form to add comment -->
192192
{% if user.is_authenticated %}
193-
<form id="form{{ answer.id }}" method="post" action="/answer-comment/"> {% csrf_token %}
193+
<form id="form{{ answer.id }}" method="post" action="/answer-comment/" novalidate> {% csrf_token %}
194194
<input type="hidden" name="answer_id" value="{{answer.id}}">
195195
<textarea name="body" class="new-comment form-control" id="comment{{ answer.id }}" rows="2"></textarea>
196196
</form>
@@ -217,7 +217,7 @@ <h4><u>Answers:</u></h4>
217217
{% endfor %}
218218

219219
{% if user.is_authenticated %}
220-
<form action="{% url 'website:question_answer' %}" method="POST"> {% csrf_token %}
220+
<form action="{% url 'website:question_answer' %}" method="POST" novalidate> {% csrf_token %}
221221
{% with WIDGET_ERROR_CLASS='field_error' %}
222222
<div class="row">
223223
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">

0 commit comments

Comments
 (0)