Fixed missing "latest locations" on Home when logged in.

This commit is contained in:
Marcus Scholz 2020-09-17 22:02:37 +02:00
parent 3f642daf89
commit d6b82f1556
1 changed files with 2 additions and 2 deletions

View File

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