Я думаю, вам нужно выделить другой url
вид для обслуживания выбранного вами InfraServiceInfo
, где вы можете показать выбранное описание.
Скажите, что ваши URL похожи на
URL
url(r'^infraServiceInfo/$', 'myapp.views.infraServiceInfo', name='InfraServiceInfo'),
url(r'^infraServiceInfo/(?P<slug>[\w-]+)/$', 'myapp.views.infraServiceInfo_detail', name='InfraServiceInfo_detail'),
И в вашем infraServiceInfo_detail
def infraServiceInfo_detail(request, app_name):
description = InfraServiceInfo.objects.get(app_name=app_name).description
app_names = InfraServiceInfo.objects.values_list('app_name', flat=True)
return render(request, 'your_render.html', {'description': description, 'app_names': app_names})