From e3e751f8f2ce599567892dad6015122e607993fb Mon Sep 17 00:00:00 2001 From: Lewis Weaver Date: Mon, 24 Feb 2014 22:49:28 +1100 Subject: [PATCH] Update RefWidget to use modelName, not label, in the popups. --- lib/forms/widgets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/forms/widgets.js b/lib/forms/widgets.js index 0183c45..6cd4349 100644 --- a/lib/forms/widgets.js +++ b/lib/forms/widgets.js @@ -215,7 +215,7 @@ exports.RefWidget = exports.ChoicesWidget.extend({ throw new TypeError('model was not provided'); } this._super(options); - this.refForm = options.refForm || options.ref.label; + this.refForm = options.refForm || options.ref.modelName; this.attrs['data-ref'] = this.refForm; } });