Changes between Initial Version and Version 1 of Ticket #24570


Ignore:
Timestamp:
Apr 2, 2015, 1:13:27 PM (9 years ago)
Author:
user0007
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24570 – Description

    initial v1  
    33during migrating from Django 1.7.5 to 1.8 I found a bug(?)
    44
     5{{{
    56    truncate_date = connection.ops.date_trunc_sql('day', 'created_at')
    67
     
    89    qs.query.group_by = ['product_id', truncate_date]
    910    qs.order_by('-max_date')[:10]
     11}}}
     12
     13{{{
    1014Traceback (most recent call last):
    1115  File "<console>", line 1, in <module>
     
    3539    "Choices are: %s" % (name, ", ".join(available)))
    3640FieldError: Cannot resolve keyword u"CAST(DATE_FORMAT(created_at, '%%Y-%%m-%%d 00:00:00') AS DATETIME)" into field.
     41}}}
    3742
    3843This code works perfectly on Django 1.7.5
Back to Top