Issue #19867, don't validate host when we're using server-set values.
#20393 django.db.models.query.QuerySet.__repr__ should not have
 side-effects

Only use the result cache for __repr__