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 27515,Make AuthenticationForm use the username length from the user model,Ramin Farajpour Cami,Lucas Connors,`AuthenticationForm` has a hardcoded `max_length=254` (#19130). It might be able to use the max length from the user model with something like: `self.fields['username'].max_length = UserModel._meta.get_field(UserModel.USERNAME_FIELD).max_length` in `AuthenticationForm.__init__()`.,Cleanup/optimization,closed,contrib.auth,dev,Normal,fixed,,Andrey Kuzminov,Accepted,1,0,0,0,0,0