  Let $C$ be a two and three-weight ternary code. Furthermore, we assume that
$C_\ell$ are $t$-designs for all $\ell$ by the Assmus--Mattson theorem. We show
that $t \leq 5$. As a corollary, we provide a new characterization of the
(extended) ternary Golay code.
