diff --git a/apps/audits/api.py b/apps/audits/api.py index cd1513c5c..f0504ad7a 100644 --- a/apps/audits/api.py +++ b/apps/audits/api.py @@ -146,7 +146,9 @@ class MyLoginLogViewSet(UserLoginCommonMixin, OrgReadonlyModelViewSet): def get_queryset(self): qs = super().get_queryset() - qs = qs.filter(username=self.request.user.username) + username = self.request.user.username + q = Q(username=username) | Q(username__icontains=f'({username})') + qs = qs.filter(q) return qs