This commit is contained in:
moanos [he/him] 2024-05-30 11:47:18 +02:00
parent cb8e3140a4
commit 47e993c8ae

View File

@ -46,6 +46,7 @@ def adoption_notice_detail(request, adoption_notice_id):
context = {"adoption_notice": adoption_notice} context = {"adoption_notice": adoption_notice}
return render(request, 'fellchensammlung/details/detail_adoption_notice.html', context=context) return render(request, 'fellchensammlung/details/detail_adoption_notice.html', context=context)
def adoption_notice_edit(request, adoption_notice_id): def adoption_notice_edit(request, adoption_notice_id):
""" """
Form to update adoption notices Form to update adoption notices
@ -61,6 +62,7 @@ def adoption_notice_edit(request, adoption_notice_id):
form = AdoptionNoticeForm(instance=adoption_notice) form = AdoptionNoticeForm(instance=adoption_notice)
return render(request, 'fellchensammlung/forms/form-adoption-notice.html', context={"form": form}) return render(request, 'fellchensammlung/forms/form-adoption-notice.html', context={"form": form})
def animal_detail(request, animal_id): def animal_detail(request, animal_id):
animal = Animal.objects.get(id=animal_id) animal = Animal.objects.get(id=animal_id)
context = {"animal": animal} context = {"animal": animal}