Wednesday, February 5, 2020

Error messages in SetPasswordForm

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 instead of \' . Is this a design decision? It might create extending this class further and development difficult for new comers. 
If I am missing something or it is already known kindly provide reference to that.

Regards,
Gagan Deep

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8847e13f-3d31-40e3-aed0-e5b06ce7b3f8%40googlegroups.com.

No comments:

Post a Comment