def application_detail(request, pk):
application = get_object_or_404(Application, pk=pk)
return render(request, 'helpdesk/application_detail.html', {'application': application})
<li>Исполнитель(и): {% for executor in application.executor_set.all %}{{ executor.owner.get_full_name }}{% if not forloop.last %}, {%endif %}{% endfor %}