2
I think I’m letting go of the basics!
I have a result that returns me only one element in the dictionary:
[{'quant': 236, 'district': 'Centro'}]
My context is:
context['Districts'] = d
How do I make in the template I write something like
{{ Districts.district }} - {{ Districts.quant }}
instead of
{% for i in vehicleDistrict %}
{{ i.dealership__district }} - {{ i.quant }}
{% endfor %}
Since the interaction is only one item?