Commit 9a8e583d authored by Michal Čihař's avatar Michal Čihař

Redirect to comments after posting new one

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent b7ae2840
...@@ -292,7 +292,7 @@ ...@@ -292,7 +292,7 @@
{% if perms.trans.add_comment %} {% if perms.trans.add_comment %}
<form method="post" action="{% url 'comment' pk=unit.id %}"> <form method="post" action="{% url 'comment' pk=unit.id %}">
{% csrf_token %} {% csrf_token %}
<input type="hidden" name="next" value="{{ this_unit_url }}" /> <input type="hidden" name="next" value="{{ this_unit_url }}#comments" />
<div class="panel panel-primary"> <div class="panel panel-primary">
<div class="panel-heading"><h4 class="panel-title">{% trans "New comment" %}</h4></div> <div class="panel-heading"><h4 class="panel-title">{% trans "New comment" %}</h4></div>
<div class="panel-body"> <div class="panel-body">
......
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