Changed sorting to newest first in PlaceGrid.
This commit is contained in:
parent
1a70c1437e
commit
8889314d9e
@ -63,7 +63,7 @@ class PlaceDetailView(IsAuthenticated, View):
|
||||
|
||||
class HomeView(View):
|
||||
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 = {
|
||||
'place_list': place_list
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user