mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 16:12:51 +11:00
Fixed different fallback values for max-snippets setting.
Refs issue #51.
This commit is contained in:
parent
68cb1c27ec
commit
a3b8c8a7a7
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue