Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2036 Zobrazení

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?  


Avatar
Zrušit
Nejlepší odpověď

Hi,

You can try as follows:

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


Thanks

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
říj 24
1378
0
zář 23
2002
7
kvě 18
4250
3
dub 16
6652
1
čvc 25
1151