diff --git a/lostplaces/lostplaces_app/views.py b/lostplaces/lostplaces_app/views.py index f622314..ac45f78 100644 --- a/lostplaces/lostplaces_app/views.py +++ b/lostplaces/lostplaces_app/views.py @@ -64,8 +64,10 @@ class PlaceDetailView(IsAuthenticated, View): class HomeView(View): def get(self, request, *args, **kwargs): place_list = Place.objects.all().order_by('-submitted_when')[:10] + place_map_center = Place.average_latlon() context = { - 'place_list': place_list + 'place_list': place_list, + 'place_map_center': place_map_center } return render(request, 'home.html', context)