You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello Joe,
First of all, many thanks for your library. With its ease of use, it has made many implementations much easier for me in the past.
I take issue #272 as an opportunity to suggest adding HTML template support to Django-Select2.
I have already successfully implemented these changes in my own project by adding the following function to the AutoResponseView:
Initialization in JavaScript works as follows:
The result is the ability to render HTML within Select2 as soon as the text is declared safe by calling the function mark_safe(...).
This small change is certainly a good way to further improve the usability of the library.
For me, the question still arises whether the functionality is better realized in the AutoResponseView or as a mixin at the form level.
What are your thoughts?
Best regards
Beta Was this translation helpful? Give feedback.
All reactions