oacpl/newsroom/views.py

10 lines
222 B
Python
Raw Normal View History

2018-02-25 23:48:34 -05:00
from django.shortcuts import render
from .models import PressRelease
def newsroom(request):
press_releases = PressRelease.objects.all()
return render(request, 'newsroom.html', {'pressRelease': press_releases})