code: def as_sql(self, *args, **kwargs):
          
          CTEQuery._remove_cte_where(self.query)
          return super(self.__class__, self).as_sql(*args, **kwargs)
docs: Overrides the :class:`SQLUpdateCompiler` method in order to remove any
          CTE-related WHERE clauses, which are not necessary for UPDATE queries,
          yet may have been added if this query was cloned from a CTEQuery.
  
          :return:
          :rtype: