oacpl/newsletters/views.py
2017-09-03 17:08:25 -04:00

9 lines
237 B
Python

from django.shortcuts import render
from .models import Newsletter
def newsletters(request):
newsletters = Newsletter.objects.all().order_by('-publish')
return render(request, 'newsletters.html', {'newsletters': newsletters})