[Fixed]-Filter ManyToMany over ManyToMany using queryset in django

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
    )

Leave a comment