Django Models - Retreiving multiple items and displaying them on a website : I am trying to retrieve multiple records from a django database to display in a table on a webpage.

This is my code so far...


    class AdminView(TemplateView):
    template_name = 'admin.html'
    print("hello world")
    def get(self, request):
        template = 'admin.html'
        data = str(Quiz.objects.all())
        admin = AdminForm(request.GET)
        context = {"admin": admin}
        context['data'] = data
        return render(request, template, context)

This is the webpage so far...

    {% if request.user.is_authenticated%}
    {% if request.user.username  == "teacher"  %}
        <!DOCTYPE html>
        <html lang="en">
        <head>
            {% load staticfiles %}
            <meta charset="UTF-8">
            <title>Admin</title>
            <link rel="stylesheet" type="text/css" href="{% static 'style.css' %}" />
        </head>
        <body>
        {% include 'navbar.html' %}

        Admin Test
        
        {{ data }}

        </body>
        </html>
        {% endif %}
    {% endif %}
    
    {% if not request.user.is_authenticated %}
    <h2>Login Required</h2>
    {% endif %}


What do you think is wrong with this code? How can I get it to display str?