Created
June 18, 2022 12:04
-
-
Save mebaysan/021efe3ad672ac4feec4a374e7f0ff2e to your computer and use it in GitHub Desktop.
Toast js Django messages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if messages %} | |
{% for message in messages %} | |
<script> | |
new Toast({ | |
message: '{{ message }}', | |
type: '{{ message.tags }}' | |
}); | |
</script> | |
{% endfor %} | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment