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 4
4
5
5
6
6
def is_direct_value (node ):
7
- return not hasattr (node , "as_sql" ) and not hasattr ( node , "as_mql" )
7
+ return not hasattr (node , "as_sql" )
8
8
9
9
10
10
def process_lhs (node , compiler , connection ):
Original file line number Diff line number Diff line change @@ -296,11 +296,11 @@ def tearDown(self):
296
296
297
297
def test_search_text (self ):
298
298
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 () ))
300
300
301
301
def test_search_lookup (self ):
302
302
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 () ))
304
304
305
305
def test_search_text_with_fuzzy_and_criteria (self ):
306
306
qs = Article .objects .annotate (
You can’t perform that action at this time.
0 commit comments