equal
deleted
inserted
replaced
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() |
|
29 |
28 task.save() |
30 task.save() |
29 return task |
31 return task |
30 |
32 |
31 def addSubTask(main_task, sub_task): |
33 def addSubTask(main_task, sub_task): |
32 """ add the task to subs attribute of the task and update its status. |
34 """ add the task to subs attribute of the task and update its status. |
123 task.id = id |
125 task.id = id |
124 task.desc = desc |
126 task.desc = desc |
125 task.created_by = created_by |
127 task.created_by = created_by |
126 task.credits = credits |
128 task.credits = credits |
127 task.creation_datetime = datetime.now() |
129 task.creation_datetime = datetime.now() |
|
130 task.published_datetime = datetime.now() |
128 task.save() |
131 task.save() |
129 return task |
132 return task |
130 |
133 |
131 def addClaim(task, message, user): |
134 def addClaim(task, message, user): |
132 """ add claim data to the database if it does not exist |
135 """ add claim data to the database if it does not exist |