taskapp/events/task.py
changeset 166 ac72d641046e
parent 162 d378eff02f2e
child 167 b61e45074ba1
--- a/taskapp/events/task.py	Tue Mar 02 02:12:57 2010 +0530
+++ b/taskapp/events/task.py	Tue Mar 02 02:25:28 2010 +0530
@@ -119,7 +119,7 @@
             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)