Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2045 Vizualizări

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?  


Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

You can try as follows:

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


Thanks

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
oct. 24
1384
0
sept. 23
2003
7
mai 18
4263
3
apr. 16
6659
1
iul. 25
1160