#16313: forms.EmailField does not match length requirements of models.EmailField --------------------+---------------------------- Reporter: natevw | Owner: nobody Type: Bug | Status: new Milestone: | Component: Forms Version: 1.3 | Severity: Normal Keywords: | Triage Stage: Unreviewed Has patch: 0 | Easy pickings: 1 UI/UX: 0 | --------------------+---------------------------- Django's models.EmailField has a default max_length=75 and thus database truncation errors will result from anything longer. Django's forms.EmailField does not have a default max_length and thus saving a "valid" 80 character email address from a form field to a model field that are both using the defaults results in an exception. forms.EmailField should default to max_length=75 so that it works as expected even when used outside of a ModelForm.
-- Ticket URL: <https://code.djangoproject.com/ticket/16313> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.