#19561 update user changelog table

This commit is contained in:
Arthur 2025-05-29 09:02:24 -07:00
parent 478bb4027f
commit ecf825d730
2 changed files with 2 additions and 1 deletions

View File

@ -78,6 +78,7 @@
<h2 class="text-center">{% trans "Recent Activity" %}</h2>
<div class="card-body table-responsive">
{% render_table changelog_table 'inc/table.html' %}
{% include 'inc/paginator.html' with paginator=changelog_table.paginator page=changelog_table.page %}
</div>
</div>
</div>

View File

@ -75,7 +75,7 @@ class UserView(generic.ObjectView):
template_name = 'users/user.html'
def get_extra_context(self, request, instance):
changelog = ObjectChange.objects.restrict(request.user, 'view').filter(user=instance)[:20]
changelog = ObjectChange.objects.restrict(request.user, 'view').filter(user=instance)
changelog_table = ObjectChangeTable(changelog)
changelog_table.configure(request)