

@login_required
def listdata(request):
    link_desc = 'Configuration Item'
    cfgitems = ConfigurationItem.objects.all().order_by('Hostname')
    return render_to_response('list.tpl', {
        'data_list': cfgitems,
        'link_desc': link_desc,
    }, context_instance=RequestContext(request))

dataset/ETHPy150Open proffalken/edison/cmdb/views.py listdata/original