Verified Commit 00b2a989 authored by Baptiste Beauplat's avatar Baptiste Beauplat
Browse files

Don't redirect on invalid comment form

parent 7abd1230
...@@ -134,3 +134,9 @@ def comment(request, name): ...@@ -134,3 +134,9 @@ def comment(request, name):
comment.notify(request) comment.notify(request)
return HttpResponseRedirect(f"{redirect_url}#upload-{index}") return HttpResponseRedirect(f"{redirect_url}#upload-{index}")
return render(request, 'package.html', {
'settings': settings,
'package': package,
'comment_form': form,
})
Supports Markdown
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