'django-tables2 package show cached data

I have this installed package: django-tables2==2.4.1 The table shows some deleted objects as if the information is cached.

views.py:

class CustomListView(LoginRequiredMixin, PermissionRequiredMixin, SingleTableView, FilterView, CustomBaseView):
  def get_context_data(self, **kwargs):
    context = super().get_context_data(**kwargs)
    context.update({
      'table': self.table_class(self.queryset),
    })
    return context

list.html:

{% load render_table from django_tables2 %}

...
<div class="card-body custom-card-body">
  <div class="table-responsive">
    {% render_table table %}
  </div>
</div>

Anybody could help me please? Thanks in advance.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source