From a8b3214c494047303659e332880f337a0116d985 Mon Sep 17 00:00:00 2001 From: moanos Date: Tue, 17 Jun 2025 16:55:38 +0200 Subject: [PATCH] refactor: remove depreacted rescue org view --- .../templates/fellchensammlung/animal-shelters.html | 13 ------------- src/fellchensammlung/urls.py | 2 +- src/fellchensammlung/views.py | 6 +----- 3 files changed, 2 insertions(+), 19 deletions(-) delete mode 100644 src/fellchensammlung/templates/fellchensammlung/animal-shelters.html diff --git a/src/fellchensammlung/templates/fellchensammlung/animal-shelters.html b/src/fellchensammlung/templates/fellchensammlung/animal-shelters.html deleted file mode 100644 index f187649..0000000 --- a/src/fellchensammlung/templates/fellchensammlung/animal-shelters.html +++ /dev/null @@ -1,13 +0,0 @@ -{% extends "fellchensammlung/base_generic.html" %} -{% load i18n %} - -{% block title %}{% translate "Tierschutzorganisationen" %}{% endblock %} - -{% block content %} -
-
- {% include "fellchensammlung/partials/partial-map.html" %} -
-
- {% include "fellchensammlung/lists/list-animal-shelters.html" %} -{% endblock %} diff --git a/src/fellchensammlung/urls.py b/src/fellchensammlung/urls.py index f343923..eea5d41 100644 --- a/src/fellchensammlung/urls.py +++ b/src/fellchensammlung/urls.py @@ -39,7 +39,7 @@ urlpatterns = [ path("vermittlung//add-animal", views.adoption_notice_add_animal, name="adoption-notice-add-animal"), - path("tierschutzorganisationen/", views.bulma_list_rescue_organizations, name="rescue-organizations"), + path("tierschutzorganisationen/", views.list_rescue_organizations, name="rescue-organizations"), path("tierschutzorganisationen//", views.detail_view_rescue_organization, name="rescue-organization-detail"), diff --git a/src/fellchensammlung/views.py b/src/fellchensammlung/views.py index 5d95e26..2a52a0e 100644 --- a/src/fellchensammlung/views.py +++ b/src/fellchensammlung/views.py @@ -683,16 +683,12 @@ def bulma_external_site_warning(request): return external_site_warning(request, 'fellchensammlung/bulma-external_site_warning.html') -def list_rescue_organizations(request, template='fellchensammlung/animal-shelters.html'): +def list_rescue_organizations(request, template='fellchensammlung/bulma-animal-shelters.html'): rescue_organizations = RescueOrganization.objects.all() context = {"rescue_organizations": rescue_organizations} return render(request, template, context=context) -def bulma_list_rescue_organizations(request): - return list_rescue_organizations(request, template='fellchensammlung/bulma-animal-shelters.html') - - def detail_view_rescue_organization(request, rescue_organization_id, template='fellchensammlung/details/bulma-detail-rescue-organization.html'): org = RescueOrganization.objects.get(pk=rescue_organization_id)