İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
2196 Görünümler

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
Vazgeç
En İyi Yanıt

Hi,

You can try as follows:

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


Thanks

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Eki 24
1559
0
Eyl 23
2149
7
May 18
4384
3
Nis 16
6787
1
Tem 25
1340