Fixed different fallback values for max-snippets setting.

Refs issue #51.
This commit is contained in:
Martin Mahner 2014-03-13 15:48:36 +01:00
parent 68cb1c27ec
commit a3b8c8a7a7

View file

@ -91,7 +91,7 @@ class SnippetForm(forms.ModelForm):
return expires return expires
def save(self, parent=None, *args, **kwargs): 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 # Set parent snippet
if parent: if parent: