Fix for permission issue with an incorrect permission key for foreign_key fields