9 lines
237 B
Python
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})
|