Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2026 Widoki

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?  


Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

You can try as follows:

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


Thanks

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
paź 24
1371
0
wrz 23
1998
7
maj 18
4224
3
kwi 16
6645
1
lip 25
1149