Hi
I have been using this patch to get around the short user name (which is 30 characters):
#--------------------------------------------------------------------------
#
# Patch to allow username to exceed the default maximum of 30 characters
#
#
http://stackoverflow.com/a/6453368/1228131
#
# Note: this works for django 1.3, 1.4, 1.5, 1.6
#
# Import what we need
from django.contrib.auth.models import User
from django.core.validators import MaxLengthValidator
# New username length
NEW_USERNAME_MAX_LENGTH = 75
# Method to patch the user name maximum length
def monkey_patch_username_maximum_length():
username = User._meta.get_field("username")
username.max_length = NEW_USERNAME_MAX_LENGTH
for validator in username.validators:
if isinstance(validator, MaxLengthValidator):
validator.limit_value = NEW_USERNAME_MAX_LENGTH
# Patch the user name maximum length
monkey_patch_username_maximum_length()
#--------------------------------------------------------------------------
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
django-users...@googlegroups.com.
> To post to this group, send email to
django...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/django-users.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/012b584e-3e72-44e6-9a09-4909b2b3353c%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.