Re: Error messages in SetPasswordForm

2020-02-05 Thread Daniel Germano Travieso
It is my belief, if I remember correctly, that the construct _() allows for usage of unicode direct text, and such, makes it possible to directly insert any special characters in the text. So for ease of understanding, the special character was used in a way that does not confuse the reader and spa

Error messages in SetPasswordForm

2020-02-05 Thread One Above All
In *django.contrib.auth.forms* there is a class named *SetPasswordForm* which has a dictionary member *error_messages*. It is defined as follows: *error_messages = {* *'password_mismatch': _('The two password fields didn’t match.'),* *}* A special character has been used for apostrophe