首页 > 代码库 > django signal

django signal

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

 

django signal