📜  django q 对象 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:10.697000             🧑  作者: Mango

代码示例4
# Get blogs entries with id 1, 4 and 7
>>> Blog.objects.filter(pk__in=[1,4,7])

# Get all blog entries with id > 14
>>> Blog.objects.filter(pk__gt=14)