Commit a6fbc327 authored by Leonidas Poulopoulos's avatar Leonidas Poulopoulos

Comment the helptext line to avoid issues with django 1.3

parent a9671611
......@@ -8,5 +8,5 @@ def longer_username(sender, *args, **kwargs):
sender._meta.get_field("username").max_length = MAX_USERNAME_LENGTH()
# For Django 1.2 to work, the validator has to be declared apart from max_length
sender._meta.get_field("username").validators = [MaxLengthValidator(MAX_USERNAME_LENGTH())]
sender._meta.get_field("username").help_text = _("Required, %s characters or fewer. Only letters, numbers, and @, ., +, -, or _ characters." % MAX_USERNAME_LENGTH())
#sender._meta.get_field("username").help_text = _("Required, %s characters or fewer. Only letters, numbers, and @, ., +, -, or _ characters." % MAX_USERNAME_LENGTH())
class_prepared.connect(longer_username)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment