Added export of place coords to home conext.

This commit is contained in:
Marcus Scholz 2020-08-20 21:38:01 +02:00
parent 2b56eed759
commit 0b0a401486

View File

@ -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)