Changed sorting to newest first in PlaceGrid.

This commit is contained in:
Marcus Scholz 2020-08-12 22:00:45 +02:00
parent 1a70c1437e
commit 8889314d9e

View File

@ -63,7 +63,7 @@ class PlaceDetailView(IsAuthenticated, View):
class HomeView(View): class HomeView(View):
def get(self, request, *args, **kwargs): def get(self, request, *args, **kwargs):
place_list = Place.objects.all().order_by('submitted_when')[:10] place_list = Place.objects.all().order_by('-submitted_when')[:10]
context = { context = {
'place_list': place_list 'place_list': place_list
} }