Changes between Version 2 and Version 3 of Ticket #25470
- Timestamp:
- Sep 26, 2015, 8:41:41 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #25470 – Description
v2 v3 10 10 11 11 # benchmark code 12 db_dates = set(Model1.objects.dates("date", kind="day"))12 db_dates = Model1.objects.dates("date", kind="day") 13 13 }}} 14 14 … … 24 24 25 25 The table is created by django. The field is exactly `DATE` field. I'd like to know, why django cast DATE to DATETIME. Is it a bug? 26 27 Currently, I use a workaround: 28 {{{ 29 db_dates = [dt['date'] for dt in Model1.objects.order_by('date').values('date').distinct()] 30 }}}