Skip to Content
Menu
This question has been flagged
1 Odpoveď
2164 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
1524
0
sep 23
2106
7
máj 18
4335
3
apr 16
6758
1
júl 25
1304