from django.db.models.signals import post_save
from what_apps.do.models import Task, TaskHierarchy
from what_apps.push.functions import push_with_template




def notifyNewChildTask(sender, instance, **kwargs):
    parent = instance.parent
    child = instance.child
    #push_with_template('do/task_row_detailed.html', {'task': child}, "/do/new_child/" + str(parent.id))
    

post_save.connect(notifyNewChildTask, sender=TaskHierarchy)

def notifyNewTask(sender, instance, **kwargs):
    return # Temporary push deprecation
    for parent in instance.parents.all():
        push_with_template('do/task_row_detailed.html', {'task': parent}, "/do/new_chlid/" + parent.id)
    #Notify parents
                    

#Create new Generic Parties every time a user or group is created.
post_save.connect(notifyNewTask, sender=Task)
71a3882141a8b29653cf99f2c8803ffea895d60b
<mask token>


def notifyNewChildTask(sender, instance, **kwargs):
    parent = instance.parent
    child = instance.child


<mask token>

<mask token>


def notifyNewChildTask(sender, instance, **kwargs):
    parent = instance.parent
    child = instance.child


<mask token>


def notifyNewTask(sender, instance, **kwargs):
    return
    for parent in instance.parents.all():
        push_with_template('do/task_row_detailed.html', {'task': parent}, 
            '/do/new_chlid/' + parent.id)


<mask token>

<mask token>


def notifyNewChildTask(sender, instance, **kwargs):
    parent = instance.parent
    child = instance.child


post_save.connect(notifyNewChildTask, sender=TaskHierarchy)


def notifyNewTask(sender, instance, **kwargs):
    return
    for parent in instance.parents.all():
        push_with_template('do/task_row_detailed.html', {'task': parent}, 
            '/do/new_chlid/' + parent.id)


post_save.connect(notifyNewTask, sender=Task)

from django.db.models.signals import post_save
from what_apps.do.models import Task, TaskHierarchy
from what_apps.push.functions import push_with_template


def notifyNewChildTask(sender, instance, **kwargs):
    parent = instance.parent
    child = instance.child


post_save.connect(notifyNewChildTask, sender=TaskHierarchy)


def notifyNewTask(sender, instance, **kwargs):
    return
    for parent in instance.parents.all():
        push_with_template('do/task_row_detailed.html', {'task': parent}, 
            '/do/new_chlid/' + parent.id)


post_save.connect(notifyNewTask, sender=Task)

from django.db.models.signals import post_save
from what_apps.do.models import Task, TaskHierarchy
from what_apps.push.functions import push_with_template




def notifyNewChildTask(sender, instance, **kwargs):
    parent = instance.parent
    child = instance.child
    #push_with_template('do/task_row_detailed.html', {'task': child}, "/do/new_child/" + str(parent.id))
    

post_save.connect(notifyNewChildTask, sender=TaskHierarchy)

def notifyNewTask(sender, instance, **kwargs):
    return # Temporary push deprecation
    for parent in instance.parents.all():
        push_with_template('do/task_row_detailed.html', {'task': parent}, "/do/new_chlid/" + parent.id)
    #Notify parents
                    

#Create new Generic Parties every time a user or group is created.
post_save.connect(notifyNewTask, sender=Task)