diff --git a/src/fellchensammlung/templates/fellchensammlung/details/detail-rescue-organization.html b/src/fellchensammlung/templates/fellchensammlung/details/detail-rescue-organization.html index c60292d..2f852f5 100644 --- a/src/fellchensammlung/templates/fellchensammlung/details/detail-rescue-organization.html +++ b/src/fellchensammlung/templates/fellchensammlung/details/detail-rescue-organization.html @@ -1,6 +1,7 @@ {% extends "fellchensammlung/base.html" %} {% load custom_tags %} {% load i18n %} +{% load admin_urls %} {% block title %}{{ org.name }}{% endblock %} @@ -30,6 +31,9 @@
{% include "fellchensammlung/partials/partial-rescue-organization-contact.html" %}
+
+ Admin interface +
{% include "fellchensammlung/partials/partial-map.html" %} diff --git a/src/fellchensammlung/views.py b/src/fellchensammlung/views.py index 97a24b9..36d9b3e 100644 --- a/src/fellchensammlung/views.py +++ b/src/fellchensammlung/views.py @@ -686,8 +686,10 @@ def list_rescue_organizations(request, template='fellchensammlung/animal-shelter def detail_view_rescue_organization(request, rescue_organization_id, template='fellchensammlung/details/detail-rescue-organization.html'): org = RescueOrganization.objects.get(pk=rescue_organization_id) + org_meta = org._meta return render(request, template, - context={"org": org, "map_center": org.position, "zoom_level": 6, "map_pins": [org]}) + context={"org": org, "map_center": org.position, "zoom_level": 6, "map_pins": [org], + "org_meta": org_meta}) def export_own_profile(request):