feat: Use adoption list template in index too

This commit is contained in:
2024-03-20 10:45:52 +01:00
parent 32021be0f7
commit 1bcdbdbbf5
2 changed files with 7 additions and 9 deletions

View File

@@ -10,7 +10,7 @@ from .forms import AdoptionNoticeForm, AnimalForm
def index(request):
"""View function for home page of site."""
latest_adoption_list = AdoptionNotice.objects.order_by("-created_at")[:5]
context = {"latest_adoptions": latest_adoption_list}
context = {"adoption_notices": latest_adoption_list}
return render(request, 'fellchensammlung/index.html', context=context)