Django не вызывает функцию и не выводит из базы данных информацию

Я начал недавно изучать django и пишу сайт для репетитора. Мне нужно добавить вывод тем, которые занесены в базу данных через админку. Но он их не выводит. Хотя данные профиля выводятся отлично. views.py

class TopicListView(ListView):
    model = Topic
    template_name = 'video/video.html'
    context_object_name = 'top'


def video(request):
    top = Topic.objects.all()
    context = {'top': top}
    return render(request, 'video/video.html', context)

video.html

{% load static %}
<!DOCTYPE html>
<html>
    <head>
        <link rel="icon" href="../static/images/favicon.jpg" type="image/x-icon">
        <link rel="shortcut icon" href="../static/images/favicon.jpg" type="image/x-icon">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Материалы</title>
        <link rel="stylesheet" href="{% static 'profiles/css/style.css' %}" type="text/css" />
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
    </head>
    <body>
        {% if user.is_authenticated %}
            <div class="top">
              <a href="/">Главная</a>
              <a class="active" href="video">Материалы</a>
              <a href="question">Тесты</a>
              <a href="accounts/logout"> Выйти</a>
            </div>
            {% for post in top %}
            <div>
            <h3>{{ post.name_topic }}</h3>
            </div>
            {% endfor %}

        {% else %}
            <p>Ввойдите в профиль, чтобы увидеть эту страницу</p>
            <div class="button">
                <a href="accounts/login">Log in</a>
            </div>
        {% endif %}
    </body>
</html>
Вернуться на верх