@receiver(post_save, sender=User)
def create_account(sender, instance=None, **kwargs):
if instance is None:
return
ytuser, created = YTUser.objects.get_or_create(user=instance)
@receiver(post_save, sender=User)
def create_account(sender, instance=None, **kwargs):
if instance is None:
return
ytuser, created = YTUser.objects.get_or_create(user=instance)