Skip to content

Commit 5042032

Browse files
committed
Addons: leave Crispy forms to handle the rendering of the form
This is the correct way to render a Crispy form. It's also required for #211
1 parent a39cec9 commit 5042032

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

readthedocsext/theme/templates/projects/addons_form.html

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,8 @@
1919
{% endblocktrans %}
2020
</div>
2121

22-
<form class="ui form"
23-
method="post"
24-
action="{% url 'projects_addons' project_slug=project.slug %}">
25-
{% csrf_token %}
26-
{{ form|crispy }}
22+
<div class="ui form">
23+
{% crispy form %}
24+
</div>
2725

28-
<input class="ui primary button" type="submit" value="{% trans "Save" %}">
29-
</form>
3026
{% endblock %}

0 commit comments

Comments
 (0)