Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
2035 Переглядів

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
жовт. 24
1377
0
вер. 23
2001
7
трав. 18
4248
3
квіт. 16
6652
1
лип. 25
1150