﻿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
34961	Add a max_length parameter to EmailValidator	jecarr	nobody	"- I was using EmailValidator on a string
- It wasn't on an EmailField (which has a [https://github.com/django/django/blob/4.2.7/django/db/models/fields/__init__.py#L1849 default max-length of 254])
- But I did want some consistency with EmailFields I have elsewhere in my application
- The EmailValidator allows a [https://github.com/django/django/blob/4.2.7/django/core/validators.py#L209 max-length of 320] (as is mentioned [https://docs.djangoproject.com/en/4.2/ref/validators/#emailvalidator in the docs] too)
- Apologies if I've misunderstood design-reasons around this, but I wondered if we could have in EmailValidator a max_length property?
- So if the 320-max-length is intentional, have EmailValidator's init function take `message=None, code=None, allowlist=None, max_length=320` as its default parameters. And then use a property `max_length` in the length-check."	Cleanup/optimization	closed	Core (Other)	4.2	Normal	wontfix		Mariusz Felisiak	Unreviewed	0	0	0	0	0	0
