def as_sql(self, qn, connection):
        if isinstance(self.col, (list, tuple)):
            col = tuple([qn(c) for c in self.col]) % '%s.%s'
        else:
            col = self.col
        return connection.ops.datetime_trunc_sql(self.lookup_type, col, self.tzname)
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Django-1.6.10/django/db/models/sql/datastructures.py/DateTime.as_sql/swapped operands of `%`