oacpl/main/views.py
Zak Timson 35bde987a3 Init
2017-08-17 13:20:57 -04:00

9 lines
227 B
Python

from django.shortcuts import render
from charter_members.models import Attorney
def index(request):
attorneys = Attorney.objects.filter(front_page=True)
return render(request, 'index.html', {'attorneys': attorneys})