1👍
✅
Change your queryset like:
def get_queryset(self, request):
user_grps = request.user.groups.all()
cat_lst = Category.objects.filter(organizers_group__in=user_grps)
return queryset = super(TaskAdmin, self).get_queryset(request).filter(
categories__in=cat_lst
)
Source:stackexchange.com