From 42a66311595c1804f449595942b88f9b487153c3 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Thu, 15 Mar 2012 16:12:25 -0400 Subject: fixed "title too long" error with unicode titles --- askbot/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ' -- cgit v1.2.3-1-g7c22