From 96c82ef8e5268db647718b135d5fae226b81f4e1 Mon Sep 17 00:00:00 2001 From: moanos Date: Wed, 20 Mar 2024 10:35:13 +0100 Subject: [PATCH] fix: Show all adoption nitices --- 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 6b0587c..18654ae 100644 --- a/src/fellchensammlung/views.py +++ b/src/fellchensammlung/views.py @@ -26,7 +26,7 @@ def animal_detail(request, animal_id): def search(request): - latest_adoption_list = AdoptionNotice.objects.order_by("-created_at")[:5] + latest_adoption_list = AdoptionNotice.objects.order_by("-created_at") context = {"adoption_notices": latest_adoption_list} return render(request, 'fellchensammlung/search.html', context=context)