Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
1858 Vistas

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
Descartar
Mejor respuesta

Hi,

You can try as follows:

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


Thanks

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
oct 24
1158
0
sept 23
1800
7
may 18
4090
3
abr 16
6481
1
abr 24
2225