equal
deleted
inserted
replaced
518 return shortcuts.render_to_response("task/edit.html", context) |
518 return shortcuts.render_to_response("task/edit.html", context) |
519 |
519 |
520 @login_required |
520 @login_required |
521 def claim_task(request, task_id): |
521 def claim_task(request, task_id): |
522 |
522 |
523 claim_url = "/task/claim/task_id=%s"%task_id |
523 claim_url = reverse('claim_task', kwargs={'task_id': task_id}) |
524 task = shortcuts.get_object_or_404(taskapp_models.Task, pk=task_id) |
524 task = shortcuts.get_object_or_404(taskapp_models.Task, pk=task_id) |
525 |
525 |
526 if task.status == "UP": |
526 if task.status == "UP": |
527 raise http.Http404 |
527 raise http.Http404 |
528 |
528 |