Skip to content
Snippets Groups Projects
Verified Commit 3eb67dae authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fix comparison of selected field.

parent 2f9e3c65
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="django-starfield" id="django-starfield-{{ widget.name }}"> <div class="django-starfield" id="django-starfield-{{ widget.name }}">
{% for i in stars %} {% for i in stars %}
<input type="radio" name="{{ widget.name }}" id="{{ widget.name }}-{{ forloop.counter0 }}" <input type="radio" name="{{ widget.name }}" id="{{ widget.name }}-{{ forloop.counter0 }}"
value="{{ i }}" {% if widget.value == i %}checked="checked"{% endif %} /> value="{{ i }}" {% ifequal widget.value i|stringformat:'i' %}checked="checked"{% endifequal %} />
<label for="{{ widget.name }}-{{ forloop.counter0 }}"><span>{{ i }}</span></label> <label for="{{ widget.name }}-{{ forloop.counter0 }}"><span>{{ i }}</span></label>
{% endfor %} {% endfor %}
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment