79296157

Date: 2024-12-20 04:17:52
Score: 0.5
Natty:
Report link

This code is working correct.

<select class="form-select form-select-sm" id="size-cart{{ product.id }}">
{% for key, value in sizes.items %}
{% if key == product.id|slugify %}
  <option selected>{{ value }}</option>
{% endif %}
{% endfor %}

{% for size in all_sizes %}
<option value="{{size.id}}">{{ size.size }}</option>
{% endfor %}
</select>
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Azmain1234