Changes between Version 1 and Version 2 of Ticket #31860
- Timestamp:
- Aug 5, 2020, 5:21:45 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31860 – Description
v1 v2 6 6 Author.objects.filter( 7 7 Q(articles__isnull=False) 8 & Q(articles__date_published__date=F("articles__date_edited__date"))) 8 & Q(articles__date_published__date=F("articles__date_edited__date")) 9 ) 9 10 }}} 10 11 … … 13 14 14 15 {{{ 15 Author.objects 16 .annotate(date_edited=Func(F("articles__date_edited"), function="DATE")) 17 .filter(Q(articles__isnull=False) & Q(articles__date_published__date=F("date_edited"))) 16 Author.objects.annotate( 17 date_edited=Func(F("articles__date_edited"), function="DATE")) 18 .filter(Q(articles__isnull=False) & Q(articles__date_published__date=F("date_edited")) 19 ) 18 20 }}} 19 21