from django.shortcuts import render from jci.models import Goal def jci_list(request): goals = Goal.objects.filter(parent__isnull=True).all() return render(request, 'jci/list.html', {'goals': goals})