为什么 django-gunicorn 不更新 html-collection?

Why django-unicorn doesnt update hmtl-collection?

django-unicorn 0.44.0的组件配置。

refresh.py

from django.db import connection
from django_unicorn.components import UnicornView
from datamarket.models import Clients


class RefreshView(UnicornView):
    clients = None
    count = None

    def get_client(self):
        self.count = Clients.objects.all().count()
        self.clients = Clients.objects.all().order_by("surname")[:10]

    def az(self):
        self.clients = Clients.objects.all().order_by("surname")[:10]

    def za(self):
        self.clients = Clients.objects.all().order_by("-surname")[:10]

    def mount(self):
        self.clients = Clients.objects.all().order_by("surname")[:10]
        self.count = Clients.objects.all().count()

refresh.html

    <div>
         <button class="btn" unicorn:click="get_client()">Update</button>
         <button class="btn" unicorn:click="az()">A-Z</button>
         <button class="btn" unicorn:click="za()">Z-A</button>
         <p> Total {{ count }} records</p>
     </div>

   <table>
                <thead>
                    <th>Surname</th>
                    <th>Name</th>
                    <th>Age</th>
                </thead>
                <tbody>
                    {% for c in clients %}
                    <tr>
                        <td>{{ c.surname }}</td>
                        <td>{{ c.name }} </td>
                        <td>{{ c.age }}</td>
                    </tr>
                    {% empty %}
                    <tr>
                        <td colspan="3">No found</td>
                    </tr>
                    {% endfor %}
                </tbody>

   </table>

当我刷新页面时,mount() 功能运行良好,它会更改 html 中的 clients 值。当我通过按钮调用 get_clients() 时,count 值也更新得很好。 但是当我通过按钮调用 get_clients()az()za() 时,它不会更改 table 中的客户端集合。为什么?

它在一周前确实有效,现在我没有收到任何错误。

解决方法是refresh.html 需要一名将军<div>