Skip to Content
Menu
This question has been flagged
1 Atsakyti
2179 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
1532
0
rugs. 23
2112
7
geg. 18
4354
3
bal. 16
6775
1
liep. 25
1307