torchbox / tbxforms

A Torchbox-flavoured template pack for django-crispy-forms, adapted from crispy-forms-gds.
https://pypi.org/project/tbxforms/
BSD 2-Clause "Simplified" License
6 stars 5 forks source link

Allow tags in non-field errors #65

Closed zerolab closed 2 months ago

zerolab commented 7 months ago

We have a use case where we want to provide a validation error with a link to some page. We use format_html()

Currently they are stripped out: https://github.com/torchbox/tbxforms/blob/d0ac47ae6121ce1b08eb9ec92d8e64c47d938e0e/tbxforms/templates/tbx/errors.html#L15-L21

kbayliss commented 2 months ago

Solved by https://github.com/torchbox/tbxforms/pull/79