oacpl/newsroom/views.py
2018-02-25 23:48:34 -05:00

10 lines
222 B
Python

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})