Sail E0 Webinar
Question
How do you concatenate two QuerySets into one list?
Options:
A .  result = list(query_set_1 | query_set_2)
B .  from itertools import chain
C .  from django.db.models import Q result = Q(query_set_1) | Q(query_set_1)
D .  result = query_set_1 + query_set_2
Answer: Option B





Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers