Re: Subtracting UNIX_TIMESTAMPS broke in Django 1.10

2016-08-17 Thread Simon Charette
Hi Dan! I'm the author of the temporal substraction changes in 1.10. I believe the main culprit here is your usage of `Func` with no explicit `output_field`. When this parameter is not specified the return type of `Func` expressions is determined by it's wrapped expressions given there's either

Subtracting UNIX_TIMESTAMPS broke in Django 1.10

2016-08-16 Thread Dan Edwards
I have a query that works in Django 1.9.9 but not 1.10. Running on CentOS 7, with python 2.7.5, and MySQL 5.6.23 on Amazon RDS Example: class TaskLog(models.Model): id = models.AutoField(primary_key=True) start = models.DateTimeField(auto_now_add=True) stop = models.DateTimeField(blan