Does a Hasse principle hold for the property of being a rational times a square ?
Let $a \in \mathbb{K}$ be an element of a number field. Assume that at every place $\mathbb{K}_v$ of $\mathbb{K}$, $a$ can be written as $a=q k^2$, with $q \in \mathbb{Q}$ and $k \in \mathbb{K}_v$. Is it true that $a$ can always be written as $q k^2$ with $q \in \mathbb{Q}$ and $k\in \mathbb{K}$ ?
EDIT : there's a restriction at the real places of $\mathbb{K}$. One should assume that the sign of $a$ is the same at every real place.