Skip to Content
Menu
This question has been flagged
1 Odpoveď
2037 Zobrazenia

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šiť
Best Answer

Hi,

You can try as follows:

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


Thanks

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
0
okt 24
1378
0
sep 23
2002
7
máj 18
4250
3
apr 16
6652
1
júl 25
1151