Esempio n. 1
0
 def __init__(self, *args, **kwargs):
     super(DigestForm, self).__init__(*args, **kwargs)
     choices = make_choices(self.user)
     self.fields["email"] = ChoiceField(widget=Select(attrs={
                                        'id': 'id_digest_email'}),
                                        choices=choices,
                                        initial=choices[0][0],
                                        label=_('Send digest results to:'))
Esempio n. 2
0
 def __init__(self, *args, **kwargs):
     super(SavedSearchForm, self).__init__(*args, **kwargs)
     choices = make_choices(self.user)
     self.fields["email"] = ChoiceField(widget=Select(), choices=choices,
                                        initial=choices[0][0])