Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly set email field max_length to 254 #1266

Merged
merged 1 commit into from
Apr 13, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mezzanine/forms/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class Form(Page, RichText):
send_email = models.BooleanField(_("Send email to user"), default=True,
help_text=_("To send an email to the email address supplied in "
"the form upon submission, check this box."))
email_from = models.EmailField(_("From address"), blank=True,
help_text=_("The address the email will be sent from"))
email_from = models.EmailField(_("From address"), max_length=254,
help_text=_("The address the email will be sent from"), blank=True)
email_copies = models.CharField(_("Send email to others"), blank=True,
help_text=_("Provide a comma separated list of email addresses "
"to be notified upon form submission. Leave blank to "
Expand Down