📜  如何使用 djoser 信号 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:49.132000             🧑  作者: Mango

代码示例2
from django.dispatch import receiver

from djoser.signals import user_activated

@receiver(user_activated)
def my_handler(user, request):
    # do what you need here