X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/99f6dd4f1ff0390de9a9bbd4e3352b953cb9a235..1bf869129aa603b63574240385dd76d8975bfa34:/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)