Created
January 2, 2022 10:00
-
-
Save perymerdeka/bdcca7b8688bdf97a100bef5dda7b881 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.dispatch import receiver | |
from allauth.socialaccount.models import SocialAccount | |
from django.db.models.signals import pre_save | |
from .models import Users | |
@receiver(pre_save, sender=SocialAccount) | |
def add_username(*args, kwargs): | |
print('Presave') | |
print(f'args: {args} \n kwargs: {kwargs}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment