Show error messages with verbose field names instead field names

15 views
Skip to first unread message

Francisco Lopes

unread,
Feb 17, 2016, 11:54:17 AM2/17/16
to Django users
Hi,

I'm creating an update form. I want to show error messages using verbose field names instead field names itself.

Source code:

http://dpaste.com/3DC214G

http://dpaste.com/2TB8SCD

When, for example, I leave the field 'estado_civil' empty, the message is 'estado_civil: this field is required'.

But i want to show this message using verbose name, like this: 'Estado Civil: this field is required'.

How can i do this?

Thanks.
Reply all
Reply to author
Forward
0 new messages