Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
remember_me = forms.BooleanField(required=False, widget=forms.CheckboxInput())
if not self.cleaned_data.get('remember_me'):
self.request.session.set_expiry(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment