This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2018-12-10 13:05:27 +00:00
|
|
|
"""passbook core signals"""
|
|
|
|
|
|
|
|
from django.core.signals import Signal
|
|
|
|
|
|
|
|
# from django.db.models.signals import post_save, pre_delete
|
|
|
|
# from django.dispatch import receiver
|
2018-12-10 13:49:15 +00:00
|
|
|
# from passbook.core.models import Invitation, User
|
2018-12-10 13:05:27 +00:00
|
|
|
|
|
|
|
user_signed_up = Signal(providing_args=['request', 'user'])
|
|
|
|
# TODO: Send this signal in admin interface
|
2018-12-10 13:21:42 +00:00
|
|
|
invitation_created = Signal(providing_args=['request', 'invitation'])
|
|
|
|
invitation_used = Signal(providing_args=['request', 'invitation', 'user'])
|