Skip to content

Conversation

@arthanson
Copy link
Collaborator

Fixes: #19561

Removes the split from the queryset for the changelog on the profile page, I don't see any reason to keep it there. Added the pagination so can get all the info.
Monosnap User Profile | NetBox 2025-05-22 14-33-01

@arthanson arthanson marked this pull request as ready for review May 22, 2025 21:51
@arthanson arthanson requested review from a team and jeremystretch and removed request for a team May 22, 2025 21:51
@jakobsen-lrz
Copy link

jakobsen-lrz commented May 23, 2025

Hello,

im sorry, but i just noticed that this Problem needs to be fixed in another file as well. In netbox/user/views.py at about line 75.

@register_model_view(User)
class UserView(generic.ObjectView):
    queryset = User.objects.all()
    template_name = 'users/user.html'

    def get_extra_context(self, request, instance):
        changelog = ObjectChange.objects.restrict(request.user, 'view').filter(user=instance)[:20]
        changelog_table = ObjectChangeTable(changelog)
        changelog_table.configure(request)

        return {
            'changelog_table': changelog_table,
        }

Can you please include a fix for this as well? Thanks.

@arthanson arthanson removed the request for review from jeremystretch May 29, 2025 15:56
@arthanson arthanson marked this pull request as draft May 29, 2025 15:56
@arthanson arthanson requested review from a team and jeremystretch and removed request for a team May 29, 2025 16:20
@jeremystretch
Copy link
Member

Closing this in favor of PR #19630 for bug #19599.

@jakobsen-lrz thanks for flagging the above issue; it is also addressed by PR #19630.

@arthanson arthanson deleted the 19561-profile branch June 20, 2025 16:46
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cant view my user profile, it shows an exception.

4 participants