query.dates/datetimes compat django 1.6