Adapting place detail view

This commit is contained in:
2020-09-12 11:42:31 +02:00
parent fed90d4f7b
commit e1002b5315
2 changed files with 5 additions and 3 deletions

View File

@@ -31,8 +31,10 @@ class PlaceDetailView(IsAuthenticated, View):
place = Place.objects.get(pk=pk)
context = {
'place': place,
'place_list': [ place ],
'place_map_center': [ place.latitude, place.longitude ],
'map_config': {
'point_list': [ place ],
'map_center': {'latitude': place.latitude, 'longitude': place.longitude},
},
'tagging_config': {
'all_tags': Tag.objects.all(),
'submit_form': TagSubmitForm(),