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

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
1778
0
вер. 23
2349
7
трав. 18
4535
3
квіт. 16
6993
1
лип. 25
1552