auto-fill model for many-to-many relationships using through models