Obtenez une liste d'ID de QuerySet Django

author = Blog.objects.filter(author=author)
ids    = author.values_list('pk', flat=True)

# list method get ids without parse the returning queryset

print(list(ids))
Tame Tapir