X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/99f6dd4f1ff0390de9a9bbd4e3352b953cb9a235..a3ec7115f15e57fec50c96ccebcd4e6b13e130b6:/apps/polls/forms.py diff --git a/apps/polls/forms.py b/apps/polls/forms.py index fba346853..20d53fe33 100644 --- a/apps/polls/forms.py +++ b/apps/polls/forms.py @@ -6,8 +6,8 @@ from django import forms class PollForm(forms.Form): - vote = forms.ChoiceField(widget = forms.RadioSelect) - + vote = forms.ChoiceField(widget=forms.RadioSelect) + def __init__(self, *args, **kwargs): poll = kwargs.pop('poll', None) super(PollForm, self).__init__(*args, **kwargs)