Fixed #23616 - added GenericRel.get_related_field()

Added get_related_field() to GenericRel in order to avoid AttributeError at BaseModelAdmin.lookup_allowed()
missing space after # (although I think we can omit the comments)
It's better to create these objects in the test method where they are used. Creating them in `setUp()` for every test adds unnecessary overhead.