From a8b2bd4e90054ac4ca490ca524c576995ae56cc8 Mon Sep 17 00:00:00 2001 From: moanos Date: Tue, 17 Jun 2025 07:01:42 +0200 Subject: [PATCH] refactor: Rename --- .../forms/{form-adoption-notice.html => form-animal.html} | 0 src/fellchensammlung/views.py | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename src/fellchensammlung/templates/fellchensammlung/forms/{form-adoption-notice.html => form-animal.html} (100%) diff --git a/src/fellchensammlung/templates/fellchensammlung/forms/form-adoption-notice.html b/src/fellchensammlung/templates/fellchensammlung/forms/form-animal.html similarity index 100% rename from src/fellchensammlung/templates/fellchensammlung/forms/form-adoption-notice.html rename to src/fellchensammlung/templates/fellchensammlung/forms/form-animal.html diff --git a/src/fellchensammlung/views.py b/src/fellchensammlung/views.py index bc9532d..8cd7109 100644 --- a/src/fellchensammlung/views.py +++ b/src/fellchensammlung/views.py @@ -176,7 +176,7 @@ def adoption_notice_edit(request, adoption_notice_id): return redirect(reverse("adoption-notice-detail-bulma", args=[adoption_notice_instance.pk], )) else: form = AdoptionNoticeForm(instance=adoption_notice) - return render(request, 'fellchensammlung/forms/form-adoption-notice.html', context={"form": form}) + return render(request, 'fellchensammlung/forms/form-animal.html', context={"form": form}) def animal_detail(request, animal_id): @@ -397,7 +397,7 @@ def animal_edit(request, animal_id): return redirect(reverse("adoption-notice-detail-bulma", args=[animal.adoption_notice.pk], )) else: form = AnimalForm(instance=animal) - return render(request, 'fellchensammlung/forms/form-adoption-notice.html', context={"form": form}) + return render(request, 'fellchensammlung/forms/form-animal.html', context={"form": form}) def about(request):