Question from the Django test

How to filter Django objects on multiple conditions?

Medium

Question: What is the role of Q | Q in the following query:

Entreprise.objects.filter(Q(business_name="Google") | Q(business_name="Facebook"))
Author: John PendenqueStatus: PublishedQuestion not yet passed
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!