Fixed #22982 -- Added GenericRelatedObjectManager.__str__. to prevent crash.

Thanks bendavis78 for the report.

Forwardport of 29585e9b6a from stable/1.7.x