prevent OverflowError in SESSION_COOKIE_AGE

This commit is contained in:
AlanCoding 2018-04-09 15:48:26 -04:00
parent e6d4778049
commit 13759fd8ce
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B

View File

@ -10,6 +10,7 @@ register(
'SESSION_COOKIE_AGE',
field_class=fields.IntegerField,
min_value=60,
max_value=30000000000, # approx 1,000 years, higher values give OverflowError
label=_('Idle Time Force Log Out'),
help_text=_('Number of seconds that a user is inactive before they will need to login again.'),
category=_('Authentication'),