Skip to content

Commit

Permalink
Merge pull request #638 from drnlm/feature/disable_automatic_form_tag…
Browse files Browse the repository at this point in the history
…_for_talks

Replace crispy forms automatic form_tag with explict tags
  • Loading branch information
drnlm committed Jun 27, 2022
2 parents b120bf4 + 4bbadec commit e51edaa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions wafer/talks/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def __init__(self, *args, **kwargs):
self.fields['authors'].label_from_instance = render_author

self.helper = FormHelper(self)
self.helper.form_tag = False
self.helper.include_media = False
instance = kwargs['instance']
submit_button = Submit('submit', _('Save') if instance else _('Submit'))
Expand Down
4 changes: 3 additions & 1 deletion wafer/talks/templates/wafer.talks/talk_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ <h1>{% trans "Talk Submission" %}</h1>
{% endblocktrans %}
</div>
{% endif %}
{% crispy form %}
<form method="post">
{% crispy form %}
</form>
{% endif %}
</section>
{% endblock %}

0 comments on commit e51edaa

Please sign in to comment.