'Sets up any special features of the query attribute.
Called by the _clone() method after initializing the rest of the
instance.'

def _setup_query(self):

    self.query.clear_deferred_loading()
    self.query = self.query.clone(klass=sql.DateTimeQuery, setup=True, tzinfo=self._tzinfo)
    self.query.select = []
    self.query.add_select(self._field_name, self._kind, self._order)
