@receiver(pre_save, sender=ApiAccessRequest, dispatch_uid='api_access_request_pre_save_email')
def send_decision_email(sender, instance, **kwargs):
 if (instance.id and (not instance.contacted)):
  old_instance = ApiAccessRequest.objects.get(pk=instance.id)
  if (instance.status != old_instance.status):
   _send_decision_email(instance)

@ receiver ( pre_save , sender = ApiAccessRequest , dispatch_uid = 'api_access_request_pre_save_email' ) def send_decision_email ( sender , instance , ** kwargs ) : if ( instance . id and ( not instance . contacted ) ) : old_instance = ApiAccessRequest . objects . get ( pk = instance . id ) if ( instance . status != old_instance . status ) : _send_decision_email ( instance )
send decision email after status changed .