Changes between Version 2 and Version 3 of Ticket #34597, comment 1
- Timestamp:
- May 25, 2023, 12:16:21 PM (19 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34597, comment 1
v2 v3 9 9 {{{#!python 10 10 Blog.objects.filter( 11 Q(is_published=True) & ~Exist (Blog.objects.filter(translation=None, id=OuterRef("id")))11 Q(is_published=True) & ~Exists(Blog.objects.filter(translation=None, id=OuterRef("id"))) 12 12 ) 13 13 }}} … … 17 17 {{{#!python 18 18 Blog.objects.filter( 19 Q(is_published=True) & Exist (Translation.objects.filter(id=OuterRef("id")))19 Q(is_published=True) & Exists(Translation.objects.filter(id=OuterRef("id"))) 20 20 ) 21 21 }}}