diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-08-23 18:06:56 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-08-25 14:46:36 -0400 |
commit | 1c16316b721117bef9387ba181b49557777a5bc9 (patch) | |
tree | 31eb7f04bd7b8a7b5e89b52a7d862023c28ee6e9 /askbot/utils | |
parent | a2d1de600828ca6017b65ce36498e824cadca87f (diff) | |
download | askbot-1c16316b721117bef9387ba181b49557777a5bc9.tar.gz askbot-1c16316b721117bef9387ba181b49557777a5bc9.tar.bz2 askbot-1c16316b721117bef9387ba181b49557777a5bc9.zip |
added js patch for the noscript tag to hide red margin on IE and disabled Lamson on Windows
Diffstat (limited to 'askbot/utils')
-rw-r--r-- | askbot/utils/forms.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/askbot/utils/forms.py b/askbot/utils/forms.py index 319e9b9d..4375ca17 100644 --- a/askbot/utils/forms.py +++ b/askbot/utils/forms.py @@ -9,6 +9,7 @@ from askbot.conf import settings as askbot_settings from askbot.utils.slug import slugify from askbot.utils.functions import split_list from askbot import const +from longerusername import MAX_USERNAME_LENGTH import logging import urllib @@ -78,7 +79,9 @@ class UserNameField(StrippedNonEmptyCharField): if 'error_messages' in kw: error_messages.update(kw['error_messages']) del kw['error_messages'] - super(UserNameField,self).__init__(max_length=30, + + max_length = MAX_USERNAME_LENGTH + super(UserNameField,self).__init__(max_length=max_length, widget=forms.TextInput(attrs=login_form_widget_attrs), label=label, error_messages=error_messages, |