diff --git a/src/fellchensammlung/views.py b/src/fellchensammlung/views.py index 5a8d6b1..9e626d3 100644 --- a/src/fellchensammlung/views.py +++ b/src/fellchensammlung/views.py @@ -346,7 +346,7 @@ def animal_edit(request, animal_id): """Log""" Log.objects.create(user=request.user, action="add_photo_to_animal", text=f"{request.user} hat Tier {animal.pk} zum Tier geƤndert") - return redirect(reverse("animal-detail", args=[animal.pk], )) + return redirect(reverse("adoption-notice-detail", args=[animal.adoption_notice.pk], )) else: form = AnimalForm(instance=animal) return render(request, 'fellchensammlung/forms/form-adoption-notice.html', context={"form": form})