def sqlite_date_diff(start_date, end_date, days=False):
    ' return a DjanoORM Expression for the number of seconds/days between start_date and end_data '
    scale = (86400 if (days is False) else 1)
    return db.ExpressionWrapper(((SQLiteDate(end_date) - SQLiteDate(start_date)) * scale), db.IntegerField())
return a DjanoORM Expression for the number of seconds/days between start_date and end_data
def sqlite_date_diff(start_date, end_date, days=False):
    '  '
    scale = (86400 if (days is False) else 1)
    return db.ExpressionWrapper(((SQLiteDate(end_date) - SQLiteDate(start_date)) * scale), db.IntegerField())