mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 04:02:52 -06:00
Fixes #19599: Prevent exception when sorting user's recent activity
This commit is contained in:
parent
b62f2347c5
commit
357ae44cde
@ -197,6 +197,7 @@ class ProfileView(LoginRequiredMixin, View):
|
|||||||
'changed_object_type'
|
'changed_object_type'
|
||||||
)[:20]
|
)[:20]
|
||||||
changelog_table = ObjectChangeTable(changelog)
|
changelog_table = ObjectChangeTable(changelog)
|
||||||
|
changelog_table.orderable = False
|
||||||
changelog_table.configure(request)
|
changelog_table.configure(request)
|
||||||
|
|
||||||
return render(request, self.template_name, {
|
return render(request, self.template_name, {
|
||||||
|
@ -65,7 +65,14 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="card">
|
<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">
|
<div class="table-responsive">
|
||||||
{% render_table changelog_table 'inc/table.html' %}
|
{% render_table changelog_table 'inc/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user