1👍
✅
Something like this:
{% for name in list_of_names %}
<div style="float: left">{{ name }}{%
if forloop.counter0 %}, {% endif
%}</div>
{% endfor %}
1👍
I’d say create <span>
s for each name; allow the spans to wrap, but not the text within them.
👤Ivo
- [Answered ]-Inline edit all ForeignKey related to a model[django admin]
- [Answered ]-Django – Slow Ajax response seems to be delayed
- [Answered ]-Vagrant – Django server – Why is host redirecting to https?
- [Answered ]-Django: Slug in Vietnamese working not correctly
Source:stackexchange.com