Changes between Version 2 and Version 3 of Ticket #34597, comment 1


Ignore:
Timestamp:
May 25, 2023, 12:16:21 PM (19 months ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34597, comment 1

    v2 v3  
    99{{{#!python
    1010Blog.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")))
    1212)
    1313}}}
     
    1717{{{#!python
    1818Blog.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")))
    2020)
    2121}}}
Back to Top