@treeio_login_required
def widget_index_assigned(request, response_format='html'):
 context = _get_default_context(request)
 agent = context['agent']
 if agent:
  tickets = Object.filter_by_request(request, Ticket.objects.filter(assigned=agent, status__hidden=False))
 else:
  return user_denied(request, 'You are not a Service Support Agent.')
 context.update({'tickets': tickets})
 return render_to_response('services/widgets/index_assigned', context, context_instance=RequestContext(request), response_format=response_format)

@ treeio_login_required def widget_index_assigned ( request , response_format = 'html' ) : context = _get_default_context ( request ) agent = context [ 'agent' ] if agent : tickets = Object . filter_by_request ( request , Ticket . objects . filter ( assigned = agent , status__hidden = False ) ) else : return user_denied ( request , 'You are not a Service Support Agent.' ) context . update ( { 'tickets' : tickets } ) return render_to_response ( 'services/widgets/index_assigned' , context , context_instance = RequestContext ( request ) , response_format = response_format )
tickets assigned to current user .