Bugfix in console models function replace foreignKey by primaryKey