Allow markdown in multiple-choice question options

This commit is contained in:
Raphael Michel
2020-03-23 17:17:36 +01:00
parent 8986db0975
commit 11b2bd8887
4 changed files with 13 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
{% load rich_text %}
{% if widget.wrap_label %}<label{% if widget.attrs.id %} for="{{ widget.attrs.id }}"{% endif %}>{% endif %}{% include "django/forms/widgets/input.html" %}{% if widget.wrap_label %} {{ widget.label|rich_text_snippet }}</label>{% endif %}