diff --git a/django_starfield/widgets.py b/django_starfield/widgets.py index e07036909d6cbb97b04073f67836dbb154eae519..650370e6f32c54899a58341b9ec9bfe372315bd9 100644 --- a/django_starfield/widgets.py +++ b/django_starfield/widgets.py @@ -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)