[Fixed]-Django templates json loops

1👍

This is just standard Python iteration over a dictionary, which defaults to iterating over the keys. If you want just the values, use {% for x in test.values %}. If you want key/value pairs, use {% for k, v in test.items %}.

Leave a comment