@handle_response_format
@treeio_login_required
@_process_mass_form
def status_view(request, status_id, response_format='html'):
 status = get_object_or_404(TicketStatus, pk=status_id)
 if (not request.user.profile.has_permission(status)):
  return user_denied(request, message="You don't have access to this Ticket Status")
 query = Q(status=status)
 if request.GET:
  query = (query & _get_filter_query(request.GET))
 tickets = Object.filter_by_request(request, Ticket.objects.filter(query))
 filters = FilterForm(request.user.profile, 'status', request.GET)
 context = _get_default_context(request)
 context.update({'status': status, 'filters': filters, 'tickets': tickets})
 return render_to_response('services/status_view', context, context_instance=RequestContext(request), response_format=response_format)

@ handle_response_format @ treeio_login_required @ _process_mass_form def status_view ( request , status_id , response_format = 'html' ) : status = get_object_or_404 ( TicketStatus , pk = status_id ) if ( not request . user . profile . has_permission ( status ) ) : return user_denied ( request , message = "You don't have access to this Ticket Status" ) query = Q ( status = status ) if request . GET : query = ( query & _get_filter_query ( request . GET ) ) tickets = Object . filter_by_request ( request , Ticket . objects . filter ( query ) ) filters = FilterForm ( request . user . profile , 'status' , request . GET ) context = _get_default_context ( request ) context . update ( { 'status' : status , 'filters' : filters , 'tickets' : tickets } ) return render_to_response ( 'services/status_view' , context , context_instance = RequestContext ( request ) , response_format = response_format )
tickets filtered by status .