Exemplo n.º 1
0
def send_delete_message(sender, instance, using, **kwargs):
    if instance.project is not None:
        pass
    elif instance.is_staged:
        pass
    else:
        fxf = instance
        send_message(fxf)
Exemplo n.º 2
0
def create_messages(sender, instance, created, **kwargs):
    if instance.project is not None:
        pass
    elif created and instance.site is not None and not instance.is_staged:
        send_message(instance)