Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion netbox/account/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def get(self, request):
user=request.user
).prefetch_related(
'changed_object_type'
)[:20]
)
changelog_table = ObjectChangeTable(changelog)
changelog_table.configure(request)

Expand Down
1 change: 1 addition & 0 deletions netbox/templates/account/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ <h2 class="card-header">{% trans "Assigned Groups" %}</h2>
<h2 class="card-header text-center">{% trans "Recent Activity" %}</h2>
<div class="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>
Expand Down
1 change: 1 addition & 0 deletions netbox/templates/users/user.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ <h2 class="card-header">{% trans "Assigned Permissions" %}</h2>
<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>
Expand Down
2 changes: 1 addition & 1 deletion netbox/users/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down