I've read a bunch of questions on how to play something like this, but I'm not sure how best to notate it. It seems to me there must be a more elegant way, e.g. if the whole note had a dropped stem or something as well.
Alternatively, since the whole note will have to be released by the second beat, I suppose it could just be dropped altogether without changing the melody.