diff --git a/src/fellchensammlung/urls.py b/src/fellchensammlung/urls.py index 0a2c37e..192dae0 100644 --- a/src/fellchensammlung/urls.py +++ b/src/fellchensammlung/urls.py @@ -43,7 +43,7 @@ urlpatterns = [ path("tierschutzorganisationen/", views.list_rescue_organizations, name="rescue-organizations"), path("tierschutzorganisationen//", views.detail_view_rescue_organization, name="rescue-organization-detail"), - path("tierschutzorganisationen/spezialisierung/", views.specialized_rescues, + path("tierschutzorganisationen/spezialisierung/", views.specialized_rescues, name="specialized-rescue-organizations"), # ex: /search/ diff --git a/src/fellchensammlung/views.py b/src/fellchensammlung/views.py index b00df49..855d58f 100644 --- a/src/fellchensammlung/views.py +++ b/src/fellchensammlung/views.py @@ -804,8 +804,8 @@ def list_rescue_organizations(request, species=None, template='fellchensammlung/ return render(request, template, context=context) -def specialized_rescues(request, species_id): - species = get_object_or_404(Species, pk=species_id) +def specialized_rescues(request, species_slug): + species = get_object_or_404(Species, slug=species_slug) return list_rescue_organizations(request, species)