@handle_response_format
@treeio_login_required
@module_admin_required()
def index_perspectives(request, response_format='html'):
 query = _get_filter_query(request.GET)
 perspectives = Perspective.objects.filter(query).order_by('name')
 filters = FilterForm(request.user.profile, 'perspective', request.GET)
 message = request.session.pop('message', '')
 return render_to_response('core/administration/index_perspectives', {'perspectives': perspectives, 'filters': filters, 'message': message}, context_instance=RequestContext(request), response_format=response_format)

@ handle_response_format @ treeio_login_required @ module_admin_required ( ) def index_perspectives ( request , response_format = 'html' ) : query = _get_filter_query ( request . GET ) perspectives = Perspective . objects . filter ( query ) . order_by ( 'name' ) filters = FilterForm ( request . user . profile , 'perspective' , request . GET ) message = request . session . pop ( 'message' , '' ) return render_to_response ( 'core/administration/index_perspectives' , { 'perspectives' : perspectives , 'filters' : filters , 'message' : message } , context_instance = RequestContext ( request ) , response_format = response_format )
perspective list .