コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2034 ビュー

I would like to link to the contact record in my validation error. The message is 

f"Partners: {names} are not configured properly. (etc.)"

Where names is a list of contacts. I would like these names to link to their corresponding contact record. How can I make them links instead of strings?  


アバター
破棄
最善の回答

Hi,

You can try as follows:

raise ValidationError(_("Invalid field %s.%s") % (model_name, field_name))


Thanks

アバター
破棄
関連投稿 返信 ビュー 活動
0
10月 24
1377
0
9月 23
2001
7
5月 18
4246
3
4月 16
6651
1
7月 25
1150