Added export of place coords to home conext.
This commit is contained in:
		@@ -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)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user