+ remember_me = forms.BooleanField(required=False, label="Keep me signed in",
+ widget=forms.CheckboxInput(attrs={'class': 'remember_me'}))
+
+ def __init__(self, *args, **kwargs):
+ # renew = kwargs.pop('renew', None)
+ # gateway = kwargs.pop('gateway', None)
+ request = kwargs.pop('request', None)
+ super(LoginForm, self).__init__(*args, **kwargs)
+ self.request = request