Speed up bulk edit for foreign keys
Fix a bug in the improved bulk edit
Style
Merge pull request #536 from deshipu/master

Speed up bulk edit for foreign keys