#or-queries

[ follow ]
fromDjangocentral
2 years ago
Django

How to Perform OR Queries in Django ORM

Use Django's Q objects and the | operator to construct OR queries, enabling retrieval of records matching any of multiple conditions via QuerySet.filter().
[ Load more ]