@handle_response_format
@treeio_login_required
@_process_mass_form
def index_in_progress(request, response_format='html'):
 query = Q(parent__isnull=True)
 if request.GET:
  query = ((query & Q(status__hidden=False)) & _get_filter_query(request.GET))
 else:
  query = (query & Q(status__hidden=False))
 tasks = Object.filter_by_request(request, Task.objects.filter(query))
 milestones = Object.filter_by_request(request, Milestone.objects.filter(status__hidden=False))
 filters = FilterForm(request.user.profile, 'status', request.GET)
 time_slots = Object.filter_by_request(request, TaskTimeSlot.objects.filter(time_from__isnull=False, time_to__isnull=True))
 context = _get_default_context(request)
 context.update({'milestones': milestones, 'tasks': tasks, 'filters': filters, 'time_slots': time_slots})
 return render_to_response('projects/index_in_progress', context, context_instance=RequestContext(request), response_format=response_format)

@ handle_response_format @ treeio_login_required @ _process_mass_form def index_in_progress ( request , response_format = 'html' ) : query = Q ( parent__isnull = True ) if request . GET : query = ( ( query & Q ( status__hidden = False ) ) & _get_filter_query ( request . GET ) ) else : query = ( query & Q ( status__hidden = False ) ) tasks = Object . filter_by_request ( request , Task . objects . filter ( query ) ) milestones = Object . filter_by_request ( request , Milestone . objects . filter ( status__hidden = False ) ) filters = FilterForm ( request . user . profile , 'status' , request . GET ) time_slots = Object . filter_by_request ( request , TaskTimeSlot . objects . filter ( time_from__isnull = False , time_to__isnull = True ) ) context = _get_default_context ( request ) context . update ( { 'milestones' : milestones , 'tasks' : tasks , 'filters' : filters , 'time_slots' : time_slots } ) return render_to_response ( 'projects/index_in_progress' , context , context_instance = RequestContext ( request ) , response_format = response_format )
a page with a list of tasks in progress .