A
A
Alex Alex2016-06-14 10:08:54
Django
Alex Alex, 2016-06-14 10:08:54

How to change NON_FIELD ERRORS messages in Django?

Hello!
Problem in the following:
There are fields in models and forms in Russian ("mail", "password", etc.). When using standard forms, django displays error texts in the spirit:
A user with this mail already exists.
Please enter correct email and password.
etc.

That is, not quite in Russian).
At the same time, these are not errors of a separate form field, which can be simply registered through error_messages, but NON_FIELD_ERRORS
Is it possible to somehow change only their text, without crutches in the spirit of rewriting validation methods in the form, only to correct the message text?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question