fix: Redirect
This commit is contained in:
parent
1445a5660e
commit
56f03329ab
@ -112,7 +112,7 @@ def adoption_notice_add_animal(request, adoption_notice_id):
|
|||||||
instance.save()
|
instance.save()
|
||||||
form.save_m2m()
|
form.save_m2m()
|
||||||
if True:
|
if True:
|
||||||
return redirect(reverse("adoption-notice-detail", args=[instance.pk]))
|
return redirect(reverse("adoption-notice-detail", args=[adoption_notice_id]))
|
||||||
else:
|
else:
|
||||||
return render(request, 'fellchensammlung/forms/form_add_animal_to_adoption.html')
|
return render(request, 'fellchensammlung/forms/form_add_animal_to_adoption.html')
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user