Fixed missing "latest locations" on Home when logged in.
This commit is contained in:
parent
3f642daf89
commit
d6b82f1556
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user