@@ -182,17 +182,6 @@ def test_filter_unsupported_lookups(self):
182
182
self .assertCountEqual (MuseumExhibit .objects .filter (** kwargs ), [])
183
183
self .assertIn (f"'field': '{ lookup } '" , captured_queries [0 ]["sql" ])
184
184
185
- def test_all_filter (self ):
186
- self .assertCountEqual (
187
- MuseumExhibit .objects .filter (sections__section_number__all = [1 , 2 ]), [self .wonders ]
188
- )
189
-
190
- def test_contained_by (self ):
191
- self .assertCountEqual (
192
- MuseumExhibit .objects .filter (sections__section_number__contained_by = [1 , 2 , 3 ]),
193
- [self .egypt , self .new_descoveries , self .wonders , self .lost_empires ],
194
- )
195
-
196
185
def test_len_filter (self ):
197
186
self .assertCountEqual (MuseumExhibit .objects .filter (sections__len = 10 ), [])
198
187
self .assertCountEqual (
@@ -305,9 +294,8 @@ def test_foreign_field_exact(self):
305
294
self .assertCountEqual (qs , [self .egypt_tour , self .wonders_tour ])
306
295
307
296
def test_foreign_field_with_slice (self ):
308
- # Only wonders exhibit has exactly two sections, and this slice matches first two
309
- qs = Tour .objects .filter (exhibit__sections__0_2__section_number__all = [1 , 2 ])
310
- self .assertEqual (list (qs ), [self .wonders_tour ])
297
+ qs = Tour .objects .filter (exhibit__sections__0_2__section_number__in = [1 , 2 ])
298
+ self .assertCountEqual (qs , [self .wonders_tour , self .egypt_tour ])
311
299
312
300
313
301
@isolate_apps ("model_fields_" )
0 commit comments