Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
2053 Представления

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
1393
0
сент. 23
2009
7
мая 18
4269
3
апр. 16
6672
1
июл. 25
1176