a looke look
This commit is contained in:
parent
e72dcd86c5
commit
e16d6f3436
9 changed files with 43 additions and 7 deletions
8
fbf/templates/fbf/birds_single.html
Normal file
8
fbf/templates/fbf/birds_single.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
{% extends "base.html" %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<h3>{{ bird.bird }}</h3>
|
||||
<p>{{ bird.id }}</p>
|
||||
<p> form </p>
|
||||
<p>änder und löschen</p>
|
||||
{% endblock content %}
|
|
@ -8,8 +8,8 @@ def bird_create(request):
|
|||
|
||||
def bird_all(request):
|
||||
birds = FallenBird.objects.all()
|
||||
context = {'birds': birds}
|
||||
return render(request, 'fbf/birds_all.html', context)
|
||||
context = {"birds": birds}
|
||||
return render(request, "fbf/birds_all.html", context)
|
||||
|
||||
|
||||
def bird_recover_all(request):
|
||||
|
@ -17,7 +17,9 @@ def bird_recover_all(request):
|
|||
|
||||
|
||||
def bird_single(request, id):
|
||||
return HttpResponse(f"Show bird with ID {id}")
|
||||
bird = FallenBird.objects.get(id=id)
|
||||
context = {"bird": bird}
|
||||
return render(request, "fbf/birds_single.html", context)
|
||||
|
||||
|
||||
def bird_delete(request, id):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue