Skip to content

Commit 9341c7f

Browse files
committed
[tests] Fixed tests
1 parent e6000ca commit 9341c7f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

openwisp_users/multitenancy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def get_search_results(self, request, queryset, search_term):
9393
request.GET.get("field_name")
9494
and not request.user.is_superuser
9595
and not self.multitenant_shared_relations
96+
and self.org_field
9697
):
9798
queryset = queryset.filter(
9899
**{f"{self.org_field}__in": request.user.organizations_managed}

0 commit comments

Comments
 (0)