I wanna add a custom function to my model, I tried to a testing function in the model

var Client = new keystone.List('Client', {

autokey: { path: 'slug', from: 'client_id', unique: true },

track: true,

testing: function (callback) {

this.populate('category', (function(err) {

if (err) return callback(err);

if (this.category) return callback(null, '/blog/' + this.category.key + '/' + this.key);

callback(null, '/blog/post/' + this.key);

}).bind(this));

}

});

but it doesn't update any thing in admin UI.

Can I ask what is the best way to insert my view templates or button in Admin UI?

Source: https://github.com/keystonejs/keystone/issues/1137