Ticket 23616

Added get_related_field() to GenericRel in order to avoid AttributeError at BaseModelAdmin.lookup_allowed()