Apply fix to user view as well

This commit is contained in:
Jeremy Stretch
2025-06-03 08:58:16 -04:00
parent 357ae44cde
commit e5e7a66cb9
5 changed files with 23 additions and 31 deletions

View File

@@ -191,11 +191,7 @@ class ProfileView(LoginRequiredMixin, View):
def get(self, request):
# Compile changelog table
changelog = ObjectChange.objects.valid_models().restrict(request.user, 'view').filter(
user=request.user
).prefetch_related(
'changed_object_type'
)[:20]
changelog = ObjectChange.objects.valid_models().restrict(request.user, 'view').filter(user=request.user)[:20]
changelog_table = ObjectChangeTable(changelog)
changelog_table.orderable = False
changelog_table.configure(request)