diff options
-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 ' |