Fix wrong variable use

This commit is contained in:
Kumi 2020-12-29 19:25:05 +01:00
parent 077c26bc0a
commit 82e563cab6

View file

@ -27,7 +27,7 @@
<option value="" {% if not object.mood %}selected{% endif %}>---------</option>
{% for mood in request.user.mood_set.all|dictsort:"value" %}
<option data-icon="{{ mood.icon }}" value="{{ mood.value }}" {% if object.mood == mood %}selected{% endif %}>{{ mood }}</option>
<option data-icon="{{ mood.icon }}" value="{{ mood.id }}" {% if object.mood == mood %}selected{% endif %}>{{ mood }}</option>
{% endfor %}
</select></td></tr>