Changes between Initial Version and Version 1 of Ticket #32750, comment 2
- Timestamp:
- May 16, 2021, 9:16:25 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #32750, comment 2
initial v1 1 > It can be works with something like: 2 > 3 > `start_datetime__month=ExtractMonth(Func(OuterRef('start_datetime'), function='', output_field=DateTimeField())),` 4 5 You can also use `ExpressionWrapper` for [https://docs.djangoproject.com/en/3.2/ref/models/expressions/#django.db.models.ExpressionWrapper this purpose] in the mean time. 6 7 `start_datetime__month=ExtractMonth(ExpressionWrapper(OuterRef('start_datetime'), output_field=DateTimeField()))`