I have a sign up form which asks only for email and password. When a user signs up, django-allauth creates a username for that user by striping the \"@email\" suffix form th
from allauth.socialaccount.adapter import DefaultSocialAccountAdapter
class CustomSocialAccountAdapter(DefaultSocialAccountAdapter):
def populate_user(self, request, sociallogin, data):
user = super().populate_user(request, sociallogin, data)
user.username = user.email
return user
SOCIALACCOUNT_ADAPTER = "profiles.models.CustomSocialAccountAdapter"