From 894a25ccce3c9dad7d93d5e713f1ac3cd8e4a8b1 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Fri, 16 Nov 2018 18:55:47 -0400 Subject: [PATCH] Appearance: Allow subclassing the TextArea widget Signed-off-by: Roberto Rosario --- HISTORY.rst | 1 + .../templates/appearance/forms/widgets/textareadiv.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index 00493b74b9..18b6ae0d35 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -11,6 +11,7 @@ - Dependencies: Update Python dependencies version. Remove django suit as a dependency. - Appearance: Remove unused form_empty_label flag. +- Appearance: Allow subclassing the text area widget. 3.1.9 (2018-11-01) ================== diff --git a/mayan/apps/appearance/templates/appearance/forms/widgets/textareadiv.html b/mayan/apps/appearance/templates/appearance/forms/widgets/textareadiv.html index 0886f0c8ca..0cc4a569f1 100644 --- a/mayan/apps/appearance/templates/appearance/forms/widgets/textareadiv.html +++ b/mayan/apps/appearance/templates/appearance/forms/widgets/textareadiv.html @@ -1,2 +1,2 @@
-{% if widget.value %}{{ widget.value }}{% endif %}
+{% block widget_value %}{% if widget.value %}{{ widget.value }}{% endif %}{% endblock %}