

def __init__(self, *args, **kwargs):
    super(LoginForm, self).__init__(*args, **kwargs)
    if getattr(settings, 'MAMA_CAS_ALLOW_AUTH_WARN', False):
        self.fields['warn'] = forms.BooleanField(widget=forms.CheckboxInput(), label=_('Warn before automatic login to other services'), required=False)

dataset/ETHPy150Open jbittel/django-mama-cas/mama_cas/forms.py LoginForm.__init__/original