X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/002577cf05a6730e8b1c97d1931d79758cbcbfdc..99f6dd4f1ff0390de9a9bbd4e3352b953cb9a235:/apps/polls/forms.py diff --git a/apps/polls/forms.py b/apps/polls/forms.py index f9ca9078a..fba346853 100644 --- a/apps/polls/forms.py +++ b/apps/polls/forms.py @@ -1,3 +1,7 @@ +# -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from django import forms @@ -7,4 +11,4 @@ class PollForm(forms.Form): def __init__(self, *args, **kwargs): poll = kwargs.pop('poll', None) super(PollForm, self).__init__(*args, **kwargs) - self.fields['vote'].choices = [(item.id, item.content) for item in poll.items.all()] \ No newline at end of file + self.fields['vote'].choices = [(item.id, item.content) for item in poll.items.all()]