summaryrefslogtreecommitdiff
path: root/taskapp/events/task.py
diff options
context:
space:
mode:
authornishanth2010-03-02 02:25:28 +0530
committernishanth2010-03-02 02:25:28 +0530
commitc96afacd4dd27cbf092eb398862ac9dc120e9309 (patch)
tree4f34b6b0463e240c8442287c0b56409f3cb1739e /taskapp/events/task.py
parentca946289e5f0b54483839c8a3671096774877827 (diff)
downloadpytask-c96afacd4dd27cbf092eb398862ac9dc120e9309.tar.gz
pytask-c96afacd4dd27cbf092eb398862ac9dc120e9309.tar.bz2
pytask-c96afacd4dd27cbf092eb398862ac9dc120e9309.zip
now task can have a title of a deleted task.
Diffstat (limited to 'taskapp/events/task.py')
-rw-r--r--taskapp/events/task.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/taskapp/events/task.py b/taskapp/events/task.py
index 625c2d8..6fd3fef 100644
--- a/taskapp/events/task.py
+++ b/taskapp/events/task.py
@@ -119,7 +119,7 @@ def createTask(title,desc,created_by,credits):
break
try:
- task = Task.objects.get(title__iexact=title)
+ task = Task.objects.exclude(status="DL").get(title__iexact=title)
return None
except:
task = Task(title=title)