Fixes #19599: Prevent exception when sorting user's recent activity

This commit is contained in:
Jeremy Stretch 2025-06-02 15:14:11 -04:00
parent b62f2347c5
commit 357ae44cde
2 changed files with 9 additions and 1 deletions

View File

@ -197,6 +197,7 @@ class ProfileView(LoginRequiredMixin, View):
'changed_object_type'
)[:20]
changelog_table = ObjectChangeTable(changelog)
changelog_table.orderable = False
changelog_table.configure(request)
return render(request, self.template_name, {

View File

@ -65,7 +65,14 @@
<div class="row">
<div class="col-md-12">
<div class="card">
<h2 class="card-header text-center">{% trans "Recent Activity" %}</h2>
<h2 class="card-header text-center">
{% trans "Recent Activity" %}
<div class="card-actions">
<a href="{% url 'core:objectchange_list' %}?user_id={{ request.user.pk }}" class="btn btn-ghost-primary btn-sm">
<i class="mdi mdi-arrow-right-thick" aria-hidden="true"></i> {% trans "View All" %}
</a>
</div>
</h2>
<div class="table-responsive">
{% render_table changelog_table 'inc/table.html' %}
</div>