Merge branch 'guntherweissenbaeck/issue47'

This commit is contained in:
gw3000 2023-08-26 10:48:18 +02:00
commit 0376b9122d
13 changed files with 1 additions and 63 deletions

View file

@ -7,8 +7,6 @@ from .views import (
bird_help,
bird_help_single,
bird_inactive,
bird_recover,
bird_recover_all,
bird_single,
)
@ -19,7 +17,5 @@ urlpatterns = [
path("delete/<id>", bird_delete, name="bird_delete"),
path("help/", bird_help, name="bird_help"),
path("help/<id>", bird_help_single, name="bird_help_single"),
path("recover/<id>", bird_recover, name="bird_recover"),
path("recover/all", bird_recover_all, name="bird_recover_all"),
path("<id>/", bird_single, name="bird_single"),
]

View file

@ -79,11 +79,6 @@ def bird_inactive(request):
return render(request, "bird/bird_inactive.html", context)
@login_required(login_url="account_login")
def bird_recover_all(request):
return HttpResponse("Show all recovered Birds")
@login_required(login_url="account_login")
def bird_single(request, id):
bird = FallenBird.objects.get(id=id)
@ -107,8 +102,3 @@ def bird_delete(request, id):
return redirect("bird_all")
context = {"bird": bird}
return render(request, "bird/bird_delete.html", context)
@login_required(login_url="account_login")
def bird_recover(request, id):
return HttpResponse(f"Show recover with ID {id}")