Fixed #23396 - Ensure ValueQuerySets are not checked by check_related_objects

See https://code.djangoproject.com/ticket/23396#ticket
I prefer to keep ticket numbers out of the code if at all possible (of course in tests is fine). If there's some information to be added, add it to the docstring.