show all rescuers in a table
This commit is contained in:
parent
2c54de339a
commit
b43afc623c
2 changed files with 33 additions and 5 deletions
|
@ -7,8 +7,8 @@ from .models import Rescuer
|
|||
|
||||
@login_required(login_url="account_login")
|
||||
def rescuer_all(request):
|
||||
rescuer = Rescuer.objects.all()
|
||||
context = {"rescuer": rescuer}
|
||||
rescuers = Rescuer.objects.all()
|
||||
context = {"rescuers": rescuers}
|
||||
return render(request, "rescuer/rescuer_all.html", context)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue