diff --git a/lostplaces/lostplaces_app/templates/place/place_detail.html b/lostplaces/lostplaces_app/templates/place/place_detail.html
index 71ce78f..01edddf 100644
--- a/lostplaces/lostplaces_app/templates/place/place_detail.html
+++ b/lostplaces/lostplaces_app/templates/place/place_detail.html
@@ -1,5 +1,9 @@
{% extends 'global.html'%}
{% load static %}
+{% block additional_head %}
+
+
+{% endblock additional_head %}
{% load thumbnail %}
{% block title %}{{place.name}}{% endblock %}
@@ -27,6 +31,7 @@
Map-Links
+ {% include 'partials/osm_map.html' %}
- Google Maps
diff --git a/lostplaces/lostplaces_app/views.py b/lostplaces/lostplaces_app/views.py
index 1c3c29c..20e4f03 100644
--- a/lostplaces/lostplaces_app/views.py
+++ b/lostplaces/lostplaces_app/views.py
@@ -57,8 +57,11 @@ class PlaceListView(IsAuthenticated, ListView):
class PlaceDetailView(IsAuthenticated, View):
def get(self, request, pk):
+ place = Place.objects.get(pk=pk)
context = {
- 'place': Place.objects.get(pk=pk)
+ 'place': place,
+ 'place_list': [ place ],
+ 'place_map_center': [ place.latitude, place.longitude ]
}
return render(request, 'place/place_detail.html', context)