diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-03-15 16:12:25 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-03-15 16:12:25 -0400 |
commit | 42a66311595c1804f449595942b88f9b487153c3 (patch) | |
tree | 9f9a40a45cee3fa13a4e2e1ffb37336d875daa50 | |
parent | 63181988df405c52c94ad6ed9420b7a938cd760c (diff) | |
download | askbot-42a66311595c1804f449595942b88f9b487153c3.tar.gz askbot-42a66311595c1804f449595942b88f9b487153c3.tar.bz2 askbot-42a66311595c1804f449595942b88f9b487153c3.zip |
fixed "title too long" error with unicode titles
-rw-r--r-- | askbot/forms.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/askbot/forms.py b/askbot/forms.py index 8c5fd082..84f21516 100644 --- a/askbot/forms.py +++ b/askbot/forms.py @@ -124,7 +124,7 @@ class TitleField(forms.CharField): '%d characters' ) % self.max_length ) - elif encoded_value > self.max_length: + elif len(encoded_value) > self.max_length: raise forms.ValidationError( _( 'The title is too long, maximum allowed size is ' |