2017-09-18 12:43:59 +02:00
|
|
|
from django.shortcuts import render
|
|
|
|
|
2017-09-20 11:28:57 +02:00
|
|
|
from jci.models import Section
|
|
|
|
|
2017-09-19 14:30:56 +02:00
|
|
|
|
|
|
|
def jci_list(request):
|
2017-09-20 11:28:57 +02:00
|
|
|
sections = Section.objects.prefetch_related('headlines').prefetch_related('headlines__standards')
|
|
|
|
return render(request, 'jci/list.html', {'sections': sections})
|