refactor: remove depreacted rescue org view
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
{% extends "fellchensammlung/base_generic.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}<title>{% translate "Tierschutzorganisationen" %}</title>{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container-cards">
|
||||
<div class="card">
|
||||
{% include "fellchensammlung/partials/partial-map.html" %}
|
||||
</div>
|
||||
</div>
|
||||
{% include "fellchensammlung/lists/list-animal-shelters.html" %}
|
||||
{% endblock %}
|
@@ -39,7 +39,7 @@ urlpatterns = [
|
||||
path("vermittlung/<int:adoption_notice_id>/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/<int:rescue_organization_id>/", views.detail_view_rescue_organization,
|
||||
name="rescue-organization-detail"),
|
||||
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user