mirror of
https://github.com/kennethreitz-archive/django-piston-xauth.git
synced 2026-06-20 23:40:58 +00:00
15 lines
314 B
Python
15 lines
314 B
Python
# Django imports
|
|
import django.dispatch
|
|
|
|
# Piston imports
|
|
from utils import send_consumer_mail
|
|
|
|
def consumer_post_save(sender, instance, created, **kwargs):
|
|
send_consumer_mail(instance)
|
|
|
|
def consumer_post_delete(sender, instance, **kwargs):
|
|
instance.status = 'canceled'
|
|
send_consumer_mail(instance)
|
|
|
|
|