📜  q fields django Q objects - Python 代码示例

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

代码示例1
>>> from django.db.models import Q
>>> queryset = User.objects.filter(
    Q(first_name__startswith='R') | Q(last_name__startswith='D')
)
>>> queryset
, , , , ]>