From d6b82f1556137faa3f010b72db9aff9c66296700 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Thu, 17 Sep 2020 22:02:37 +0200 Subject: [PATCH] Fixed missing "latest locations" on Home when logged in. --- django_lostplaces/lostplaces/views/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django_lostplaces/lostplaces/views/views.py b/django_lostplaces/lostplaces/views/views.py index 407cc8b..d50aabd 100644 --- a/django_lostplaces/lostplaces/views/views.py +++ b/django_lostplaces/lostplaces/views/views.py @@ -28,9 +28,9 @@ class HomeView(IsAuthenticatedMixin, View): def get(self, request, *args, **kwargs): place_list = Place.objects.all().order_by('-submitted_when')[:10] context = { - 'all_points': place_list, + 'place_list': place_list, 'mapping_config': { - 'point_list': place_list, + 'all_points': place_list, 'map_center': Place.average_latlon(place_list) } }