django reverse queryset

queryset = reversed(Collection.objects.filter(pk__in = li))

Here is what the above code is Doing:
1. We’re using the reverse() method to reverse the order of the queryset.
2. We’re using the filter() method to filter the queryset by the list of pk values.
3. We’re using the __in operator to check if the pk is in the list of pk values.