Changes between Version 1 and Version 2 of Ticket #28827
- Timestamp:
- Nov 21, 2017, 10:37:06 PM (7 years ago)
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 1 Query with ExtractHour and calculation like "values(minutes=(ExtractHour('dt_start') * 60))" gives an pytz error: AttributeError: 'int' object has no attribute 'tzinfo' 2 1 3 The generated query works fine in MySQL, guess Django still thinks the result is a datetime/timezone object 2 4 but it has become an integer because of the calculation.