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

Fix codepoint usage.

parent 6e6247a5
No related branches found
No related tags found
No related merge requests found
{% for i in stars %}<!--
--><input type="radio" name="{{ name }}" id="{{ name }}-{{ forloop.counter0 }}"
value="{{ i }}" {% if value == i %}checked="checked"{% endif %} /><!--
--><label for="{{ name }}-{{ forloop.counter0 }}">{{ i }}</label><!--
--><label for="{{ name }}-{{ forloop.counter0 }}"
style="content: '\{{ codepoint }}'">{{ i }}</label><!--
-->{% endfor %}
......@@ -6,7 +6,7 @@ class Stars(Widget):
def __init__(self, attrs=None, stars=5, codepoint='2605'):
super(Stars, self).__init__(attrs)
self.stars = 5
self.codepoint = '2605'
self.codepoint = codepoint
def get_context(self, name, value, attrs):
context = super(Stars, self).get_context(name, value, attrs)
......
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