Changes between Initial Version and Version 1 of Ticket #31446
- Timestamp:
- Apr 9, 2020, 11:52:22 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31446 – Description
initial v1 3 3 When doing: 4 4 5 Ticket.objects.annotate(5 {{{Ticket.objects.annotate( 6 6 notify_date=ExpressionWrapper( 7 7 F('date') - F('notify_before_in_days'), output_field=DateField())) 8 8 }}} 9 9 With on Ticket a modelfield: date = models.DateField() will yield wrong results if notify_before_in_days passes through the month boundary. 10 10 E.g. If date is 9th of April and notify_before_in_days = 10, it will yield: 20200399 for notify_date, instead of 20200331.