def __init__(self, attrs=None): choices = (('1', ('---')), ('2', ugettext_lazy('yes')), ('3', ugettext_lazy('no'))) Select.__init__(self, attrs, choices)
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)
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)