Changes between Version 2 and Version 3 of Ticket #25470


Ignore:
Timestamp:
Sep 26, 2015, 8:41:41 AM (9 years ago)
Author:
Qian Xu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25470 – Description

    v2 v3  
    1010
    1111# benchmark code
    12 db_dates = set(Model1.objects.dates("date", kind="day"))
     12db_dates = Model1.objects.dates("date", kind="day")
    1313}}}
    1414
     
    2424
    2525The 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
     27Currently, I use a workaround:
     28{{{
     29db_dates  = [dt['date'] for dt in Model1.objects.order_by('date').values('date').distinct()]
     30}}}
Back to Top