Documentation for EmailField max_length
|Reported by:||Rotund||Owned by:||Rotund|
|Cc:||joe@…||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
There has been discussion on the Django-develop mailing list about the default max_length of the EmailField. The RFCs allow for 254 octets. This can allow for a maximum of 254 characters. Post 1.4, someone may decide to have the EmailField properly handle the encoding information if a character would use multiple bytes, but in the meantime the documentation should be updated to add the following note to the EmailField.
The default 75 character max_length is not capable of storing all RFC3696/5321 email addresses. A max_length of 254 would be capable of storing all email addresses as defined by the RFC3696/5321 specification. This is not being changed at this time to maintain backwards compatibility.
Change History (5)
comment:1 Changed 3 years ago by russellm
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Ready for checkin