コード例 #1
0
ファイル: forms.py プロジェクト: IRI-Research/jocondelab
 def __init__(self, attrs=None):
     choices = (('1', ('---')),
                ('2', ugettext_lazy('yes')),
                ('3', ugettext_lazy('no')))
     Select.__init__(self, attrs, choices)
コード例 #2
0
    def __init__(self, jquery=None, attrs=None, choices=(), buit=None):
        self.jquery = jquery if jquery else u''
        self.buit = buit if buit else False

        Select.__init__(self, attrs=attrs, choices=choices)
コード例 #3
0
 def __init__(self, attrs=None):
     choices = ((u'1', ugettext(u'Indifférent')), (u'2', ugettext(u'Oui')),
                (u'3', ugettext(u'Non')))
     Select.__init__(self, attrs, choices)
コード例 #4
0
ファイル: widgets.py プロジェクト: ctrl-alt-d/django-aula
 def __init__(self, jquery=None, attrs=None, choices=(), buit=None):
     self.jquery = jquery if jquery else u''
     self.buit = buit if buit else False
     
     Select.__init__(self, attrs=attrs, choices=choices)
コード例 #5
0
ファイル: widgets.py プロジェクト: ouhouhsami/django-sanscom
 def __init__(self, attrs=None):
     choices = ((u'1', ugettext(u'Indifférent')),
                (u'2', ugettext(u'Oui')),
                (u'3', ugettext(u'Non')))
     Select.__init__(self, attrs, choices)