Fixed #23396 - Ensure ValueQuerySets are not checked by check_related_objects

See https://code.djangoproject.com/ticket/23396#ticket
how about
```
return (
    model == ... or
    opts.concrete_model in model._meta.get_parent_list() or 
   ...
)
```