Changes between Initial Version and Version 1 of Ticket #24570
- Timestamp:
- Apr 2, 2015, 1:13:27 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #24570 – Description
initial v1 3 3 during migrating from Django 1.7.5 to 1.8 I found a bug(?) 4 4 5 {{{ 5 6 truncate_date = connection.ops.date_trunc_sql('day', 'created_at') 6 7 … … 8 9 qs.query.group_by = ['product_id', truncate_date] 9 10 qs.order_by('-max_date')[:10] 11 }}} 12 13 {{{ 10 14 Traceback (most recent call last): 11 15 File "<console>", line 1, in <module> … … 35 39 "Choices are: %s" % (name, ", ".join(available))) 36 40 FieldError: Cannot resolve keyword u"CAST(DATE_FORMAT(created_at, '%%Y-%%m-%%d 00:00:00') AS DATETIME)" into field. 41 }}} 37 42 38 43 This code works perfectly on Django 1.7.5