Question from the Django test

How to filter Django objects on multiple conditions?

Easy

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 passed 37 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!