refactor
This commit is contained in:
parent
cb8e3140a4
commit
47e993c8ae
@ -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}
|
||||||
|
Loading…
Reference in New Issue
Block a user