summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndi Albrecht <albrecht.andi@gmail.com>2009-09-05 21:38:27 +0200
committerAndi Albrecht <albrecht.andi@gmail.com>2009-09-05 21:38:27 +0200
commit29590e09223ca9eb44e15429488664cff9db5f9e (patch)
tree52ab3a4b800fed0c7b2ca45715ff15d19471af65
parentfc6f972a21537ff743b2e9e7bad8ce8db832c01d (diff)
downloadsqlparse-29590e09223ca9eb44e15429488664cff9db5f9e.tar.gz
Don't allow 0 for reindent.
-rw-r--r--extras/appengine/sqlformat/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/appengine/sqlformat/views.py b/extras/appengine/sqlformat/views.py
index d8799c0..4af35cf 100644
--- a/extras/appengine/sqlformat/views.py
+++ b/extras/appengine/sqlformat/views.py
@@ -62,7 +62,7 @@ class FormOptions(forms.Form):
('upper', 'Upper case'),
('capitalize', 'Capitalize'))),
required=False, initial='', label='Identifiers')
- n_indents = forms.IntegerField(min_value=0, max_value=30,
+ n_indents = forms.IntegerField(min_value=1, max_value=30,
initial=2, required=False,
label='spaces',
widget=forms.TextInput({'size': 2,