id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 28177 Clarify documentation with regards to Q objects and OR Yoong Kang Lim Yoong Kang Lim "In the QuerySet documentation it is written: In general, Q() objects make it possible to define and reuse conditions. This permits the construction of complex database queries using | (OR) and & (AND) operators; **in particular, it is not otherwise possible to use OR in QuerySets**. It's possible to use OR without Q objects by simply using the | operator on two querysets, e.g: {{{ queryset = Article.objects.filter(headline__startswith='Hello') | Article.objects.filter(headline__startswith='Goodbye') }}} Examples of this still remain in in the or_lookups tests, although I must confess I haven't used this style much. Perhaps the wording should be changed, or simply removed." Cleanup/optimization closed Documentation dev Normal duplicate Unreviewed 0 0 0 0 0 0