refactor: remove animal detail view
This commit is contained in:
@@ -1,9 +0,0 @@
|
|||||||
{% extends "fellchensammlung/base_generic.html" %}
|
|
||||||
{% load custom_tags %}
|
|
||||||
{% load i18n %}
|
|
||||||
|
|
||||||
{% block title %}<title>{{ animal.name }}</title>{% endblock %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
{% include "fellchensammlung/details/detail-animal-partial.html" %}
|
|
||||||
{% endblock %}
|
|
@@ -20,8 +20,6 @@ urlpatterns = [
|
|||||||
path("", views.index, name="index"),
|
path("", views.index, name="index"),
|
||||||
path("rss/", LatestAdoptionNoticesFeed(), name="rss"),
|
path("rss/", LatestAdoptionNoticesFeed(), name="rss"),
|
||||||
path("metrics/", views.metrics, name="metrics"),
|
path("metrics/", views.metrics, name="metrics"),
|
||||||
# ex: /animal/5/
|
|
||||||
path("tier/<int:animal_id>/", views.animal_detail, name="animal-detail"),
|
|
||||||
# ex: /animal/5/edit
|
# ex: /animal/5/edit
|
||||||
path("tier/<int:animal_id>/edit", views.animal_edit, name="animal-edit"),
|
path("tier/<int:animal_id>/edit", views.animal_edit, name="animal-edit"),
|
||||||
# ex: /animal/5/delete
|
# ex: /animal/5/delete
|
||||||
|
@@ -169,12 +169,6 @@ def adoption_notice_edit(request, adoption_notice_id):
|
|||||||
return render(request, 'fellchensammlung/forms/form-animal.html', context={"form": form})
|
return render(request, 'fellchensammlung/forms/form-animal.html', context={"form": form})
|
||||||
|
|
||||||
|
|
||||||
def animal_detail(request, animal_id):
|
|
||||||
animal = Animal.objects.get(id=animal_id)
|
|
||||||
context = {"animal": animal}
|
|
||||||
return render(request, 'fellchensammlung/details/detail_animal.html', context=context)
|
|
||||||
|
|
||||||
|
|
||||||
def search_important_locations(request, important_location_slug):
|
def search_important_locations(request, important_location_slug):
|
||||||
i_location = get_object_or_404(ImportantLocation, slug=important_location_slug)
|
i_location = get_object_or_404(ImportantLocation, slug=important_location_slug)
|
||||||
search = Search()
|
search = Search()
|
||||||
|
Reference in New Issue
Block a user