Skip to Content
Menu
This question has been flagged
1 Atsakyti
2524 Rodiniai

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?  


Portretas
Atmesti
Best Answer

Hi,

You can try as follows:

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


Thanks

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
spal. 24
1981
0
rugs. 23
2517
7
geg. 18
4713
3
bal. 16
7158
1
liep. 25
1749