Skip to content

Commit

Permalink
Optimize group list (#8554)
Browse files Browse the repository at this point in the history
Co-authored-by: Дмитрий Муковкин <[email protected]>
  • Loading branch information
shipko and Дмитрий Муковкин authored Sep 20, 2023
1 parent c32f819 commit 0f020d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dojo/group/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

@user_is_configuration_authorized('auth.view_group')
def group(request):
groups = get_authorized_groups(Permissions.Group_View)
groups = get_authorized_groups(Permissions.Group_View).prefetch_related('users', 'global_role', 'global_role__role')
groups = GroupFilter(request.GET, queryset=groups)
paged_groups = get_page_items(request, groups.qs, 25)
add_breadcrumb(title="All Groups", top_level=True, request=request)
Expand Down

0 comments on commit 0f020d7

Please sign in to comment.