feat: try reverse

This commit is contained in:
2025-06-22 21:27:52 +02:00
parent b91a17e950
commit 7be61bc9b8

View File

@@ -685,6 +685,7 @@ 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})
return render(request, template,
context={"org": org, "map_center": org.position, "zoom_level": 6, "map_pins": [org]})