Skip to content

Commit

Permalink
Fixes #6811: Fix exception when editing users
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Jul 26, 2021
1 parent 51c1f4b commit fc01bed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions docs/release-notes/version-3.0.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# NetBox v3.0

## v3.0-beta2 (FUTURE)

### Bug Fixes

* [#6811](https://github.com/netbox-community/netbox/issues/6811) - Fix exception when editing users

---

## v3.0-beta1 (2021-07-23)

!!! warning "Existing Deployments Must Upgrade from v2.11"
Expand Down
2 changes: 1 addition & 1 deletion netbox/users/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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').nocache()
return super().get_queryset(request).prefetch_related('objectpermission__object_types')

@staticmethod
def object_types(instance):
Expand Down

0 comments on commit fc01bed

Please sign in to comment.