Changes between Version 1 and Version 2 of Ticket #28827


Ignore:
Timestamp:
Nov 21, 2017, 10:37:06 PM (7 years ago)
Author:
Martijnth
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28827

    • Property Summary query with ExtractHour and calculation like "values(minutes=(ExtractHour('dt_start') * 60))" gives an pytz error: AttributeError: 'int' object has no attribute 'tzinfo'AttributeError: 'int' object has no attribute 'tzinfo' with ExtractHour and calculation
  • Ticket #28827 – Description

    v1 v2  
     1Query with ExtractHour and calculation like "values(minutes=(ExtractHour('dt_start') * 60))" gives an pytz error: AttributeError: 'int' object has no attribute 'tzinfo'
     2
    13The generated query works fine in MySQL, guess Django still thinks the result is a datetime/timezone object
    24but it has become an integer because of the calculation.
Back to Top