Fixed #23616 - added GenericRel.get_related_field()

Added get_related_field() to GenericRel in order to avoid AttributeError at BaseModelAdmin.lookup_allowed()
don't need to assign these to self.