taskapp/events/task.py
changeset 125 d3cfceb8e120
parent 124 6d92b7cd2a37
child 126 e5377fdaf110
equal deleted inserted replaced
124:6d92b7cd2a37 125:d3cfceb8e120
    23 
    23 
    24     if rem_comments:
    24     if rem_comments:
    25         task.comment_set.update(is_deleted=True)
    25         task.comment_set.update(is_deleted=True)
    26         task.comment_set.update(deleted_by=task.created_by)
    26         task.comment_set.update(deleted_by=task.created_by)
    27 
    27 
    28     task.published_datetime = datetime.datetime.now()
    28     task.published_datetime = datetime.now()
    29 
    29 
    30     task.save()
    30     task.save()
    31     return task
    31     return task
    32 
    32 
    33 def addSubTask(main_task, sub_task):
    33 def addSubTask(main_task, sub_task):