Created
December 9, 2020 06:41
-
-
Save richardoey/50623a6e43ea2db7b1cb059c0a009324 to your computer and use it in GitHub Desktop.
How to iterate through dict in Django template
This file contains 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
{% for key, value in test_codes_dict.items %} | |
<option value="{{ key }}">{{ value }}</option> | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment