Use related_name to generate inline field names. Fixes issues #417, #418.