mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 18:08:38 -06:00
fixes #5113 - incorrect caching of permission object assignments to user groups in the admin panel
This commit is contained in:
parent
0d01a3fce8
commit
87c13a876b
@ -1,5 +1,11 @@
|
|||||||
# NetBox v2.9
|
# NetBox v2.9
|
||||||
|
|
||||||
|
## v2.9.8 (FUTURE)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* [#5113](https://github.com/netbox-community/netbox/issues/5113) - Fix incorrect caching of permission object assignments to user groups in the admin panel
|
||||||
|
|
||||||
## v2.9.7 (2020-10-12)
|
## v2.9.7 (2020-10-12)
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
@ -22,7 +22,7 @@ class ObjectPermissionInline(admin.TabularInline):
|
|||||||
verbose_name_plural = 'Permissions'
|
verbose_name_plural = 'Permissions'
|
||||||
|
|
||||||
def get_queryset(self, request):
|
def get_queryset(self, request):
|
||||||
return super().get_queryset(request).prefetch_related('objectpermission__object_types')
|
return super().get_queryset(request).prefetch_related('objectpermission__object_types').nocache()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def object_types(instance):
|
def object_types(instance):
|
||||||
|
Loading…
Reference in New Issue
Block a user