summaryrefslogtreecommitdiffstats
path: root/askbot/forms.py
diff options
context:
space:
mode:
authorpiskvorky <radimrehurek@seznam.cz>2011-12-17 08:41:14 +0100
committerpiskvorky <radimrehurek@seznam.cz>2011-12-17 08:50:50 +0100
commitca020224af9a58035012f96ddca499c78bc9982b (patch)
tree8492c4420cd02e2df9cf3e9a7c1f61553c5e6fe7 /askbot/forms.py
parent68d36e1f9bddfde23b7d2d9aae39466ced7a6714 (diff)
downloadaskbot-ca020224af9a58035012f96ddca499c78bc9982b.tar.gz
askbot-ca020224af9a58035012f96ddca499c78bc9982b.tar.bz2
askbot-ca020224af9a58035012f96ddca499c78bc9982b.zip
added min settings to javascript
Diffstat (limited to 'askbot/forms.py')
-rw-r--r--askbot/forms.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/askbot/forms.py b/askbot/forms.py
index e0c24cfd..cc2a4ef3 100644
--- a/askbot/forms.py
+++ b/askbot/forms.py
@@ -107,8 +107,7 @@ class TitleField(forms.CharField):
def clean(self, value):
if len(value) < askbot_settings.MIN_TITLE_LENGTH:
- msg = ungettext_lazy('title must be > %(min_len) characters'
- ) % {'min_len': askbot_settings.MIN_TITLE_LENGTH}
+ msg = _('title must be > %d characters') % askbot_settings.MIN_TITLE_LENGTH
raise forms.ValidationError(msg)
return value
@@ -124,8 +123,7 @@ class EditorField(forms.CharField):
def clean(self, value):
if len(value) < askbot_settings.MIN_EDITOR_LENGTH:
- msg = ungettext_lazy('question content must be > %(min_len)d characters'
- ) % {'min_len': askbot_settings.MIN_EDITOR_LENGTH}
+ msg = _('question content must be > %d characters') % askbot_settings.MIN_EDITOR_LENGTH
raise forms.ValidationError(msg)
return value