File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 44
55
66def is_direct_value (node ):
7- return not hasattr (node , "as_sql" ) and not hasattr ( node , "as_mql" )
7+ return not hasattr (node , "as_sql" )
88
99
1010def process_lhs (node , compiler , connection ):
Original file line number Diff line number Diff line change @@ -296,11 +296,11 @@ def tearDown(self):
296296
297297 def test_search_text (self ):
298298 qs = Article .objects .annotate (score = SearchText (path = "body" , query = "lazy" ))
299- self .wait_for_assertion (lambda : self .assertCountEqual ([self .article ], qs ))
299+ self .wait_for_assertion (lambda : self .assertCountEqual ([self .article ], qs . all () ))
300300
301301 def test_search_lookup (self ):
302302 qs = Article .objects .filter (body__search = "lazy" )
303- self .wait_for_assertion (lambda : self .assertCountEqual ([self .article ], qs ))
303+ self .wait_for_assertion (lambda : self .assertCountEqual ([self .article ], qs . all () ))
304304
305305 def test_search_text_with_fuzzy_and_criteria (self ):
306306 qs = Article .objects .annotate (
You can’t perform that action at this time.
0 commit comments