FallenBirdyForm/fbf/views.py
2023-06-08 20:48:33 +02:00

29 lines
645 B
Python

from django.shortcuts import render, HttpResponse
from .models import FallenBird
def bird_create(request):
return HttpResponse("Create a bird")
def bird_all(request):
birds_all = FallenBird.objects.all()
for bird in birds_all:
print(bird)
return HttpResponse("Show all Birds")
def bird_recover_all(request):
return HttpResponse("Show all recovered Birds")
def bird_single(request, id):
return HttpResponse(f"Show bird with ID {id}")
def bird_delete(request, id):
return HttpResponse(f"Show delete with ID {id}")
def bird_recover(request, id):
return HttpResponse(f"Show recover with ID {id}")