You can use the below mentioned piece of code from the Django documentation to filter a Django query with a list of values: Blog.objects.filter(pk__in=[1, ...
確定! 回上一頁