[Answer]-Django, using ANY in a query 16 December 2023 by thecoderscamp.com 1 Assuming your history_list is the proper subquery, .exclude(id__in=history_list). Peter DeGlopper [Answer]-How to get user data with python social auth..? Source:stackexchange.com