def get_queryset(self):
        queryset = super(FlagLogView, self).get_queryset()
        if not self.request.user.global_moderator:
            queryset = queryset.filter(
                message__thread__group__in=self.request.user.groups_moderating
            ).distinct()
        return queryset
Get the queryset for the Flag log
dataset/ETHPy150Open ofa/connect/open_connect/moderation/views.py/FlagLogView.get_queryset