Merge branch 'guntherweissenbaeck/issue47'
This commit is contained in:
commit
0376b9122d
13 changed files with 1 additions and 63 deletions
|
@ -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"),
|
||||
]
|
||||
|
|
|
@ -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}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue