1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

fixes #5113 - incorrect caching of permission object assignments to user groups in the admin panel

This commit is contained in:
John Anderson
2020-10-14 20:10:21 -04:00
parent 0d01a3fce8
commit 87c13a876b
2 changed files with 7 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class ObjectPermissionInline(admin.TabularInline):
verbose_name_plural = 'Permissions'
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
def object_types(instance):