oacpl/main/views.py

9 lines
227 B
Python
Raw Normal View History

2017-08-17 13:20:57 -04:00
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})