mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 16:12:51 +11:00
Need to fix fallback value, in case the list is too short it would fail
This commit is contained in:
parent
a546cc4d59
commit
4dfab6533a
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ EXPIRE_CHOICES = getattr(settings, 'DPASTE_EXPIRE_CHOICES', (
|
||||||
(3600 * 24 * 30, _(u'In one month')),
|
(3600 * 24 * 30, _(u'In one month')),
|
||||||
('never', _(u'Never')),
|
('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)
|
MAX_CONTENT_LENGTH = getattr(settings, 'DPASTE_MAX_CONTENT_LENGTH', 250*1024*1024)
|
||||||
|
|
||||||
def get_expire_values(expires):
|
def get_expire_values(expires):
|
||||||
|
|
Loading…
Reference in a new issue