Update view generation to generate drop-downs when are foreign keys.