How do I change the default username for satchmo registration?

58 views Asked by At

Since it seems that users are allowed to use their usernames to login instead of only email, I want to make the user name default to the email address. How do I achieve this? I'm assuming that I have to override the model somewhere.

1

There are 1 answers

6
Aswin Murugesh On

Its simple. While you create the User Object, why don't you refer the username to the email..

user = User.objects.create(
    username = mail,
    email = mail
)

this will do..