The current code doesn't check id fields for m2m relations, but I think this may be an oversight.