Added sorting to newsletters
This commit is contained in:
parent
d759bd12e9
commit
e3af05a0b0
@ -4,5 +4,5 @@ from .models import Newsletter
|
||||
|
||||
|
||||
def newsletters(request):
|
||||
newsletters = Newsletter.objects.all()
|
||||
newsletters = Newsletter.objects.all().order_by('-publish')
|
||||
return render(request, 'newsletters.html', {'newsletters': newsletters})
|
||||
|
Loading…
Reference in New Issue
Block a user