});
//Tags autocomplete action
- $("#id_tags").autocomplete("/matching_tags/", {
+ $("#id_tags").autocomplete("{% url matching_tags %}", {
minChars: 1,
matchContains: true,
max: 10,
<div id="main-body" class="ask-body">
<div id="askform">
<form id="fmask" action="" method="post" accept-charset="utf-8">
+ {% csrf_token %}
{% if not request.user.is_authenticated %}
<div class="message">
<span class="strong big">{% trans "You are welcome to start submitting your question anonymously." %}</span>
{{ form.tags.help_text }}
</p>
- {% if form.captcha %}
+ {% if form.recaptcha %}
<div class="question-captcha" style="float: left">
- {{ form.captcha.errors }}
- {{ form.captcha }}
+ {{ form.recaptcha.errors }}
+ {{ form.recaptcha }}
</div>
<div class="clear"></div>
{% endif %}