Re: best practice to change allowed characters in a username

2008-10-29 Thread Jarek Zgoda
Wiadomość napisana w dniu 2008-10-29, o godz. 16:57, przez Benedict Verheyen: >> You have to unregister the admin class for User model before >> registering your own. > > Thanks, that seems to solve the register error. > However, the other question remains, is the way i'm going about to > chang

Re: best practice to change allowed characters in a username

2008-10-29 Thread Benedict Verheyen
Jarek Zgoda wrote: > You have to unregister the admin class for User model before > registering your own. Thanks, that seems to solve the register error. However, the other question remains, is the way i'm going about to change the allowed characters ok? Thanks, Benedict --~--~-~--~

Re: best practice to change allowed characters in a username

2008-10-29 Thread Jarek Zgoda
Wiadomość napisana w dniu 2008-10-29, o godz. 16:39, przez Benedict Verheyen: > I tried to override the 2 forms in my models.py file > > class MyUserCreationForm(UserCreationForm): >username = forms.RegexField(label=_("Username"), max_length=30, > regex=r'[EMAIL PROTECTED]', >help

best practice to change allowed characters in a username

2008-10-29 Thread Benedict Verheyen
Hi, i want to know what the best practice is for following problem. I use the built in user authentication framework. I've already made the login authenticate against our AD. Works fine (see http://www.djangosnippets.org/snippets/901/) In our company, usernames are specified with a period betw