docs: def where_entry_deleted(query):
      """ Generate a where clause for entries that have been deleted """
      return orm.select(
          e for e in query
          if e.status == model.PublishStatus.GONE.value)