Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.0.X] Fixed #10169: don't accidentally try to redirect to "None" af…

…ter posting a comment. Backport of r10429 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10431 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 0013403eeedae76d79b100db71b2327c6535b847 1 parent 1c2ee28
@jacobian jacobian authored
View
2  django/contrib/comments/templates/comments/approve.html
@@ -7,7 +7,7 @@
<h1>{% trans "Really make this comment public?" %}</h1>
<blockquote>{{ comment|linebreaks }}</blockquote>
<form action="." method="post">
- <input type="hidden" name="next" value="{{ next }}" id="next" />
+ {% if next %}<input type="hidden" name="next" value="{{ next }}" id="next" />{% endif %}
<p class="submit">
<input type="submit" name="submit" value="{% trans "Approve" %}" /> or <a href="{{ comment.get_absolute_url }}">cancel</a>
</p>
View
2  django/contrib/comments/templates/comments/delete.html
@@ -7,7 +7,7 @@
<h1>{% trans "Really remove this comment?" %}</h1>
<blockquote>{{ comment|linebreaks }}</blockquote>
<form action="." method="post">
- <input type="hidden" name="next" value="{{ next }}" id="next" />
+ {% if next %}<input type="hidden" name="next" value="{{ next }}" id="next" />{% endif %}
<p class="submit">
<input type="submit" name="submit" value="{% trans "Remove" %}" /> or <a href="{{ comment.get_absolute_url }}">cancel</a>
</p>
View
2  django/contrib/comments/templates/comments/flag.html
@@ -7,7 +7,7 @@
<h1>{% trans "Really flag this comment?" %}</h1>
<blockquote>{{ comment|linebreaks }}</blockquote>
<form action="." method="post">
- <input type="hidden" name="next" value="{{ next }}" id="next" />
+ {% if next %}<input type="hidden" name="next" value="{{ next }}" id="next" />{% endif %}
<p class="submit">
<input type="submit" name="submit" value="{% trans "Flag" %}" /> or <a href="{{ comment.get_absolute_url }}">cancel</a>
</p>

0 comments on commit 0013403

Please sign in to comment.
Something went wrong with that request. Please try again.