itterate over database using related_name django code example Example: django reverse queryset queryset = reversed(Collection.objects.filter(pk__in = li))