Skip to content

Instantly share code, notes, and snippets.

@klebercode klebercode/forms.py forked from chriskief/forms.py
Created Sep 17, 2019

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
You can’t perform that action at this time.