feat: raise 404 when AN not found

This commit is contained in:
2025-07-30 08:01:34 +02:00
parent 370ad2ce66
commit 8ce4122160

View File

@@ -106,7 +106,7 @@ def handle_an_check_actions(request, action, adoption_notice=None):
def adoption_notice_detail(request, adoption_notice_id):
adoption_notice = AdoptionNotice.objects.get(id=adoption_notice_id)
adoption_notice = get_object_or_404(AdoptionNotice, id=adoption_notice_id)
adoption_notice_meta = adoption_notice._meta
if request.user.is_authenticated:
try: