Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2023 Tampilan

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
Buang
Jawaban Terbai

Hi,

You can try as follows:

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


Thanks

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
0
Okt 24
1370
0
Sep 23
1997
7
Mei 18
4213
3
Apr 16
6642
1
Jul 25
1143