File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1313from django .contrib .auth .forms import UserChangeForm as BaseUserChangeForm
1414from django .contrib .auth .forms import UserCreationForm as BaseUserCreationForm
1515from django .http import HttpRequest
16+ from django .utils .safestring import mark_safe
1617from django .utils .translation import gettext_lazy as _
1718
1819from .widgets import BASE_INPUT_CLASSES , INPUT_CLASSES , SELECT_CLASSES
@@ -75,7 +76,7 @@ def __init__(
7576
7677 password = self .fields .get ("password" )
7778 if password :
78- password .help_text = password .help_text .format ("../password/" )
79+ password .help_text = mark_safe ( password .help_text .format ("../password/" ) )
7980
8081
8182class AdminPasswordChangeForm (BaseAdminPasswordChangeForm ):
Original file line number Diff line number Diff line change @@ -41,9 +41,7 @@ <h2 class="bg-gray-100 border border-transparent font-semibold mb-6 px-4 py-3 ro
4141 {% endif %}
4242
4343 {% if field.field.help_text %}
44- < div class ="leading-relaxed mt-2 text-gray-500 text-xs dark:text-gray-400 ">
45- {{ field.field.help_text|safe }}
46- </ div >
44+ {% include "unfold/helpers/help_text.html" with help_text=field.field.help_text %}
4745 {% endif %}
4846 </ div >
4947 {% endfor %}
Original file line number Diff line number Diff line change 11{% if help_text %}
22 < div class ="leading-relaxed mt-2 text-gray-500 text-xs dark:text-gray-400 ">
3- {{ help_text|safe }}
3+ {{ help_text }}
44 </ div >
55{% endif %}
You can’t perform that action at this time.
0 commit comments