# A Queryset is buillt with some unknown filter criteria
qs = Model.objects.filter(....)
# All we see in out code is the QuerySet qs. But we want somehow to add a filter criterion. We can do this:
qs = qs.filter(...)
# and the new filter criteria will be added, but with AND logic. What if we want to add one with OR logic (loosen the filter some)
# It might look like:
qs = qs | Q(...)
# But does it? How can we add an ORed filter criterion to qs?
--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/2BuFFMDL0VI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d9d845e5-62c2-479c-83cc-6d21b719a74f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.