ckeditor added and single bird help

This commit is contained in:
gw3000 2023-07-20 20:18:11 +02:00
parent a8196bc5c9
commit 371ecda4cc
7 changed files with 34 additions and 9 deletions

View file

@ -36,11 +36,18 @@ def bird_create(request):
@login_required(login_url="account_login")
def bird_help(request):
birds = Bird.objects.all()
birds = Bird.objects.all().order_by("name")
context = {"birds": birds}
return render(request, "bird/bird_help.html", context)
@login_required(login_url="account_login")
def bird_help_single(request, id):
bird = Bird.objects.all().get(id=id)
context = {"bird": bird}
return render(request, "bird/bird_help_single.html", context)
@login_required(login_url="account_login")
def bird_all(request):
birds = FallenBird.objects.filter(Q(status="1") | Q(status="2")).annotate(