Expire choices are not settable.

This commit is contained in:
Martin Mahner 2013-12-17 18:10:19 +01:00
parent 85bb0605e2
commit b4e62fca36

View file

@ -7,12 +7,12 @@ from django.utils.translation import ugettext_lazy as _
from dpaste.models import Snippet
from dpaste.highlight import LEXER_LIST, LEXER_DEFAULT, LEXER_KEYS
EXPIRE_CHOICES = (
EXPIRE_CHOICES = getattr(settings, 'DPASTE_EXPIRE_CHOICES', (
(3600, _(u'In one hour')),
(3600 * 24 * 7, _(u'In one week')),
(3600 * 24 * 30, _(u'In one month')),
)
EXPIRE_DEFAULT = EXPIRE_CHOICES[2][0]
))
EXPIRE_DEFAULT = getattr(settings, 'DPASTE_EXPIRE_DEFAULT', EXPIRE_CHOICES[2][0])
MAX_CONTENT_LENGTH = getattr(settings, 'DPASTE_MAX_CONTENT_LENGTH', 250*1024*1024)
MAX_SNIPPETS_PER_USER = getattr(settings, 'DPASTE_MAX_SNIPPETS_PER_USER', 15)