pytask/taskapp/utils.py
author Nishanth Amuluru <nishanth@fossee.in>
Sun, 09 Jan 2011 19:35:31 +0530
changeset 128 4c349f310dfc
parent 106 aa61ea9c29f9
child 132 1be4a3c09a47
permissions -rw-r--r--
edit task works now

from pytask.taskapp.models import Task
from django.http import Http404

def getTask(tid):

    try:
        task = Task.objects.get(uniq_key=tid)
        return task
    except Task.DoesNotExist:
        raise Http404