Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
2093 Visninger

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
Kassér
Bedste svar

Hi,

You can try as follows:

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


Thanks

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
0
okt. 24
1463
0
sep. 23
2041
7
maj 18
4297
3
apr. 16
6725
1
jul. 25
1249