You might want to do `list(thread_ids)` here to force it to be a list of ids. Otherwise I think it's a SearchQuerySet.