Hi Andrew, like just posted that in here: http://groups.google.com/group/django-users/browse_thread/thread/81d856b37b979d0c?hl=en
you may allow user to enter name, surname, email using standard Django User class (has email, and lastname, firstname fields) but hide username field and then generate username yourself using, say, email or both email or username, etc. Cheers, Phil On Jul 16, 5:50 am, "Andrew D. Ball" <[email protected]> wrote: > Good afternoon. > > Here's the username field from the latest Django trunk's > django.contrib.auth.models module: > > username = models.CharField(_('username'), max_length=30, unique=True, > help_text=_("Required. 30 characters or fewer. Alphanumeric characters > only (letters, digits and underscores).")) > > Why is the format of the username so restrictive? The company I work for > has clients with usernames that contain spaces, email addresses, possibly even > non-ASCII characters. I would love to use the standard User model, but I > can't > dictacte the format of the usernames of our clients' own systems. > > Is there any way to work around this? We have already implemented our own > user model, but I would like to use the standard Django one to make > integration > with apps like Satchmo more feasible. > > Peace, > Andrew > -- > =================================== > Andrew D. Ball > [email protected] > Software Engineer > American Research Institute, Inc.http://www.americanri.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

