Changes between Version 5 and Version 6 of Ticket #33973, comment 2


Ignore:
Timestamp:
Sep 1, 2022, 3:30:14 PM (2 years ago)
Author:
Marc Parizeau

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33973, comment 2

    v5 v6  
    44Content.objects.all().annotate(
    55    unread=Exists(
    6             Thread.objects.filter(
    7                 content=OuterRef('pk'),
    8             ).exclude(threadentry__user=user)
     6        Thread.objects.filter(
     7            content=OuterRef('pk'),
     8        ).exclude(threadentry__user=user)
    99    ).filter(
    1010        unread=True,
Back to Top