next view and rendering it
This commit is contained in:
parent
259c68692b
commit
fef67254ee
5 changed files with 13 additions and 8 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue