diff --git a/src/fellchensammlung/templates/fellchensammlung/details/detail-rescue-organization.html b/src/fellchensammlung/templates/fellchensammlung/details/detail-rescue-organization.html index 7f4eb5a..2f852f5 100644 --- a/src/fellchensammlung/templates/fellchensammlung/details/detail-rescue-organization.html +++ b/src/fellchensammlung/templates/fellchensammlung/details/detail-rescue-organization.html @@ -32,7 +32,7 @@ {% include "fellchensammlung/partials/partial-rescue-organization-contact.html" %}
- Admin interface + Admin interface
diff --git a/src/fellchensammlung/views.py b/src/fellchensammlung/views.py index 75c0cb8..5e5f7f2 100644 --- a/src/fellchensammlung/views.py +++ b/src/fellchensammlung/views.py @@ -685,9 +685,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) - url = reverse("fellchensammlung_rescueorganization_change", args={"rescue_organization_id": 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):