﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
30163	error_messages password1 'required' can not be overwritten	Oskar Haller	nobody	"
{{{
class UserRegisterForm(UserCreationForm):
    """"""
    Form class to register a new user
    """"""
    class Meta:
        #https://docs.djangoproject.com/en/2.1/topics/forms/modelforms/#modelforms-overriding-default-fields
        model = User
        fields = (...'password1',  'password2')
        error_messages = {
            'password1': {
                'required': _('Please enter a password.')
            },
            'password2': {
                'required': _('Please enter a password.')
            }
        }

}}}

Instead of 'Please enter a password' I get 'This field is required.' 

For all other fields the overwriting works fine
"	Uncategorized	new	Uncategorized	2.1	Normal				Unreviewed	0	0	0	0	0	0
