Answer the question
In order to leave comments, you need to log in
How to edit selected values in a multiselect?
There is a form for editing a product with a drop-down list:
<select>
<option>Фиолетовый</option>
<option>Белый</option>
....
<option>Зелёный</option>
</select>
{% for color in product.colors %}
{{ color.name }}
{% endfor %}
Answer the question
In order to leave comments, you need to log in
<select>
{% for color in product.colors %}
<option value="{{ color.id }}">{{ color.name }}</option>
{% endfor %}
</select>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question