

def clean(self):
    cleaned_data = super(PollVoteManyForm, self).clean()
    if self.poll.is_closed:
        raise forms.ValidationError(_('This poll is closed'))
    return cleaned_data

dataset/ETHPy150Open nitely/Spirit/spirit/comment/poll/forms.py PollVoteManyForm.clean/original