Changes between Initial Version and Version 1 of Ticket #30770
- Timestamp:
- Sep 11, 2019, 7:46:33 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30770
- Property Summary annotating TruncBase on ExpressionWrapper for date arithmetic, causes unnecessary placeholder "%s" escaping to "%%s" → annotating TruncBase on ExpressionWrapper for date arithmetic, causes unnecessary placeholder "%s" escaping to "%%s" and TypeError
-
Ticket #30770 – Description
initial v1 3 3 from django.db.models import F, DateTimeField, ExpressionWrapper 4 4 from django.db.models.functions import Cast, Least, Greatest, Now, Coalesce, ExtractWeekDay, TruncDay 5 5 6 User.objects 6 7 .annotate(trial_end=TruncDay(ExpressionWrapper(F('date_joined')+ timedelta(days=30), output_field=DateTimeField())))