From a3b8c8a7a7532f290b7ff66c9a329316f0e70d5c Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Thu, 13 Mar 2014 15:48:36 +0100 Subject: [PATCH] Fixed different fallback values for max-snippets setting. Refs issue #51. --- dpaste/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dpaste/forms.py b/dpaste/forms.py index c5cc6db..d583209 100644 --- a/dpaste/forms.py +++ b/dpaste/forms.py @@ -91,7 +91,7 @@ class SnippetForm(forms.ModelForm): return expires def save(self, parent=None, *args, **kwargs): - MAX_SNIPPETS_PER_USER = getattr(settings, 'DPASTE_MAX_SNIPPETS_PER_USER', 15) + MAX_SNIPPETS_PER_USER = getattr(settings, 'DPASTE_MAX_SNIPPETS_PER_USER', 10) # Set parent snippet if parent: