django model filter in list code example
Example 1: django filter in list
Blog.objects.filter(pk__in=[1, 4, 7])
Example 2: django reverse queryset
queryset = reversed(Collection.objects.filter(pk__in = li))
Blog.objects.filter(pk__in=[1, 4, 7])
queryset = reversed(Collection.objects.filter(pk__in = li))