From e010fa413bb3767767e31ca0150fc191ccff9a93 Mon Sep 17 00:00:00 2001 From: moanos Date: Tue, 17 Jun 2025 07:07:24 +0200 Subject: [PATCH] refactor: Remove non-bulma rescue org --- src/fellchensammlung/urls.py | 4 +--- src/fellchensammlung/views.py | 7 +------ 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/fellchensammlung/urls.py b/src/fellchensammlung/urls.py index af71357..18ac78e 100644 --- a/src/fellchensammlung/urls.py +++ b/src/fellchensammlung/urls.py @@ -40,10 +40,8 @@ urlpatterns = [ name="adoption-notice-add-animal"), path("tierschutzorganisationen/", views.bulma_list_rescue_organizations, name="rescue-organizations"), - path("organisation//", views.detail_view_rescue_organization, + path("tierschutzorganisationen//", views.detail_view_rescue_organization, name="rescue-organization-detail"), - path("bulma/organisation//", views.bulma_detail_view_rescue_organization, - name="bulma-rescue-organization-detail"), # ex: /search/ path("suchen/", views.search, name="search"), diff --git a/src/fellchensammlung/views.py b/src/fellchensammlung/views.py index 69ea62f..e066b24 100644 --- a/src/fellchensammlung/views.py +++ b/src/fellchensammlung/views.py @@ -682,17 +682,12 @@ def bulma_list_rescue_organizations(request): def detail_view_rescue_organization(request, rescue_organization_id, - template='fellchensammlung/details/detail-rescue-organization.html'): + template='fellchensammlung/details/bulma-detail-rescue-organization.html'): org = RescueOrganization.objects.get(pk=rescue_organization_id) return render(request, template, context={"org": org, "map_center": org.position, "zoom_level": 6, "rescue_organizations": [org]}) -def bulma_detail_view_rescue_organization(request, rescue_organization_id): - return detail_view_rescue_organization(request, - rescue_organization_id, - template='fellchensammlung/details/bulma-detail-rescue-organization.html') - def export_own_profile(request): user = request.user