Пример #1
0
def notify_message(sender, instance, **kwargs):
    from curia.notifications import notify

    if not instance.deleted:
        notify(sender, instance.parent_thread)
Пример #2
0
def notify_event(sender, instance, **kwargs):
    if instance.event_parent == None:
        notify(sender, instance)
Пример #3
0
def notify_event(sender, instance, **kwargs):
    if instance.event_parent == None:
        notify(sender, instance)
Пример #4
0
def notify_document(sender, instance, **kwargs):
    if instance.title != '<Document without version>':
        notify(sender, instance=instance, **kwargs)
Пример #5
0
def notify_message(sender, instance, **kwargs):
    from curia.notifications import notify
    if not instance.deleted:
        notify(sender, instance.parent_thread)