summaryrefslogtreecommitdiffstats
path: root/forum/forms.py
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-05-10 22:48:01 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-05-10 22:48:01 -0400
commitc05ea71f5ac40fbcecb0b0f8f7c354f328ebff36 (patch)
tree5e6937c30754faf4664bf5daf2ef3cb2c1403802 /forum/forms.py
parent576a8f1e25109a46b44c62a8e4276eae45d6cd18 (diff)
downloadaskbot-c05ea71f5ac40fbcecb0b0f8f7c354f328ebff36.tar.gz
askbot-c05ea71f5ac40fbcecb0b0f8f7c354f328ebff36.tar.bz2
askbot-c05ea71f5ac40fbcecb0b0f8f7c354f328ebff36.zip
checked most settings and made some hairy ones hidded for now
Diffstat (limited to 'forum/forms.py')
-rw-r--r--forum/forms.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/forum/forms.py b/forum/forms.py
index e69d8480..7e5ae755 100644
--- a/forum/forms.py
+++ b/forum/forms.py
@@ -67,10 +67,11 @@ class TagNamesField(forms.CharField):
out_tag_list = []
tag_count = len(tag_strings)
if tag_count > forum_settings.MAX_TAGS_PER_POST:
+ max_tags = forum_settings.MAX_TAGS_PER_POST
msg = ungettext(
- 'please use %(tag_count)d tag or less',#odd but have to use to pluralize
+ 'please use %(tag_count)d tag or less',
'please use %(tag_count)d tags or less',
- tag_count) % {'tag_count':tag_count}
+ tag_count) % {'tag_count':max_tags}
raise forms.ValidationError(msg)
for tag in tag_strings:
tag_length = len(tag)