From 4dfab6533a963ec65f13c434ff6b587121424f1c Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Fri, 12 Dec 2014 20:58:21 +0000 Subject: [PATCH] Need to fix fallback value, in case the list is too short it would fail --- dpaste/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dpaste/forms.py b/dpaste/forms.py index 3bb7542..afcf05e 100644 --- a/dpaste/forms.py +++ b/dpaste/forms.py @@ -14,7 +14,7 @@ EXPIRE_CHOICES = getattr(settings, 'DPASTE_EXPIRE_CHOICES', ( (3600 * 24 * 30, _(u'In one month')), ('never', _(u'Never')), )) -EXPIRE_DEFAULT = getattr(settings, 'DPASTE_EXPIRE_DEFAULT', EXPIRE_CHOICES[3][0]) +EXPIRE_DEFAULT = getattr(settings, 'DPASTE_EXPIRE_DEFAULT', 3600) MAX_CONTENT_LENGTH = getattr(settings, 'DPASTE_MAX_CONTENT_LENGTH', 250*1024*1024) def get_expire_values(expires):