mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 01:48:38 -06:00
Fixes #8578: Object change log tables should honor user's configured preferences
This commit is contained in:
parent
41ee4b642f
commit
450a7730d3
@ -8,6 +8,7 @@
|
|||||||
* [#8548](https://github.com/netbox-community/netbox/issues/8548) - Fix display of VC members when position is zero
|
* [#8548](https://github.com/netbox-community/netbox/issues/8548) - Fix display of VC members when position is zero
|
||||||
* [#8561](https://github.com/netbox-community/netbox/issues/8561) - Include option to connect a rear port to a console port
|
* [#8561](https://github.com/netbox-community/netbox/issues/8561) - Include option to connect a rear port to a console port
|
||||||
* [#8564](https://github.com/netbox-community/netbox/issues/8564) - Fix errant table configuration key `available_columns`
|
* [#8564](https://github.com/netbox-community/netbox/issues/8564) - Fix errant table configuration key `available_columns`
|
||||||
|
* [#8578](https://github.com/netbox-community/netbox/issues/8578) - Object change log tables should honor user's configured preferences
|
||||||
* [#8604](https://github.com/netbox-community/netbox/issues/8604) - Fix tag filter on config context list filter form
|
* [#8604](https://github.com/netbox-community/netbox/issues/8604) - Fix tag filter on config context list filter form
|
||||||
|
|
||||||
---
|
---
|
||||||
|
@ -448,7 +448,8 @@ class ObjectChangeLogView(View):
|
|||||||
)
|
)
|
||||||
objectchanges_table = tables.ObjectChangeTable(
|
objectchanges_table = tables.ObjectChangeTable(
|
||||||
data=objectchanges,
|
data=objectchanges,
|
||||||
orderable=False
|
orderable=False,
|
||||||
|
user=request.user
|
||||||
)
|
)
|
||||||
paginate_table(objectchanges_table, request)
|
paginate_table(objectchanges_table, request)
|
||||||
|
|
||||||
|
@ -133,7 +133,7 @@ class HomeView(View):
|
|||||||
changelog = ObjectChange.objects.restrict(request.user, 'view').prefetch_related(
|
changelog = ObjectChange.objects.restrict(request.user, 'view').prefetch_related(
|
||||||
'user', 'changed_object_type'
|
'user', 'changed_object_type'
|
||||||
)[:10]
|
)[:10]
|
||||||
changelog_table = ObjectChangeTable(changelog)
|
changelog_table = ObjectChangeTable(changelog, user=request.user)
|
||||||
|
|
||||||
# Check whether a new release is available. (Only for staff/superusers.)
|
# Check whether a new release is available. (Only for staff/superusers.)
|
||||||
new_release = None
|
new_release = None
|
||||||
|
Loading…
Reference in New Issue
Block a user