Dear Django community,
often I would like to trigger a message to the user with the message rendered dynamically in the client-side JS code. I use the message framework's tags to differentiate between the different messages in JS.
Usually, I will define the message's text on the client side as well, making it unnecessary to define the message text in the Django backend. My first idea was to set the message text parameter to "None" or the empty string when calling add_message.
Unfortunately, it seems that this will lead to the message beging discarded. Is there are another way to send a message without text (but a number of tags) with the messages framework?
Best regards
Sebastian
No comments:
Post a Comment