Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

src/o/p/Open-Knesset-HEAD/agendas/forms.py   Open-Knesset(Download)
from django.utils.translation import ugettext_lazy as _
 
from models import (Agenda, AgendaVote, UserSuggestedVote,
                    AGENDAVOTE_SCORE_CHOICES,
                    IMPORTANCE_CHOICES)
    agenda_id = forms.IntegerField(widget=forms.HiddenInput)
    weight = forms.TypedChoiceField(label=_('Importance'),
                                    choices=IMPORTANCE_CHOICES,
                                    required=False,
                                    widget=forms.Select)
class VoteLinkingForm(MeetingLinkingForm):
    weight = forms.TypedChoiceField(label=_('Position'), choices=AGENDAVOTE_SCORE_CHOICES,
             required=False, widget=forms.Select)
    importance = forms.TypedChoiceField(label=_('Importance'),
                                        choices=IMPORTANCE_CHOICES,