next view and rendering it

This commit is contained in:
gw3000 2023-06-09 09:20:27 +02:00
parent 259c68692b
commit fef67254ee
5 changed files with 13 additions and 8 deletions

View file

@ -7,10 +7,9 @@ def bird_create(request):
def bird_all(request):
birds_all = FallenBird.objects.all()
for bird in birds_all:
print(bird)
return HttpResponse("Show all Birds")
birds = FallenBird.objects.all()
context = {'birds': birds}
return render(request, 'fbf/birds_all.html', context)
def bird_recover_all(request):