From 56f03329abd663780f202cb7ec6ef5dadd477878 Mon Sep 17 00:00:00 2001 From: moanos Date: Thu, 30 May 2024 15:58:54 +0200 Subject: [PATCH] fix: Redirect --- src/fellchensammlung/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fellchensammlung/views.py b/src/fellchensammlung/views.py index 5fb0a14..2e570d7 100644 --- a/src/fellchensammlung/views.py +++ b/src/fellchensammlung/views.py @@ -112,7 +112,7 @@ def adoption_notice_add_animal(request, adoption_notice_id): instance.save() form.save_m2m() if True: - return redirect(reverse("adoption-notice-detail", args=[instance.pk])) + return redirect(reverse("adoption-notice-detail", args=[adoption_notice_id])) else: return render(request, 'fellchensammlung/forms/form_add_animal_to_adoption.html') else: