#NEWLINE# def validate( self , password , user = None ) : #NEWLINE# #INDENT# if ( len ( password ) < password . min_length ) : #NEWLINE# #INDENT# raise ValidationError ( _ ( 'This password is too short. It must contain at least %(min_length)d characters.' ) , code = 'password_too_short' , params = { #NEWLINE# #INDENT# 'min_length' : self . min_length , #NEWLINE# #UNINDENT# } )