<filename>django_hotel/src/agents/views.py<gh_stars>0
from django.shortcuts import render
from .models import Agent


# Create your views here.
def agents_list(request):
    agent_list = Agent.objects.all()
    template = 'agents/agents.html'
    context = {
        'agent_list': agent_list
    }

    return render(request, template, context)
