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

Add codepoint attribut to widget.

parent c0c7f208
No related branches found
No related tags found
No related merge requests found
......@@ -3,9 +3,10 @@ from django.forms.widget import Widget
class Stars(Widget):
template_name = 'django_starfield/stars.html'
def __init__(self, attrs=None, stars=5):
def __init__(self, attrs=None, stars=5, codepoint='2605'):
super(Stars, self).__init__(attrs)
self.stars = 5
self.codepoint = '2605'
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