İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
2080 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
1451
0
Eyl 23
2029
7
May 18
4287
3
Nis 16
6693
1
Tem 25
1218