Unverified Commit 67650bec authored by David Haynes's avatar David Haynes
Browse files

Fix: Render the form again correctly on error

- forgot to update the template name
parent ed835333
Pipeline #1147 passed with stage
in 1 minute and 17 seconds
......@@ -23,7 +23,7 @@ SRCT Go • My Links
</div>
</div>
<div class="newlink" style="text-align: right;">
<a href="{% url 'index' %}"><i class="fa fa-plus" aria-hidden="true"></i> Add new link</a>
<a href="{% url 'new_link' %}"><i class="fa fa-plus" aria-hidden="true"></i> Add new link</a>
</div>
</div>
......
......@@ -93,7 +93,7 @@ def new_link(request):
# Else, there is an error, redisplay the form with the validation errors
else:
# Render index.html passing the form to the template
return render(request, 'core/index.html', {
return render(request, 'core/new_link.html', {
'form': url_form,
})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment