Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Used EmailField where appropriate.

This is a BACKWARDS INCOMPATIBILE change, since it updates field lengths
from 50 chars to 75.
  • Loading branch information...
commit 91f58bc45745b0654066d670dd74e4337ed3ff83 1 parent 734e441
@spookylukey spookylukey authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 mailer/models.py
View
10 mailer/models.py
@@ -61,8 +61,8 @@ class Message(models.Model):
objects = MessageManager()
- to_address = models.CharField(max_length=50)
- from_address = models.CharField(max_length=50)
+ to_address = models.EmailField()
+ from_address = models.EmailField()
subject = models.CharField(max_length=100)
message_body = models.TextField()
message_body_html = models.TextField(blank=True)
@@ -101,7 +101,7 @@ class DontSendEntry(models.Model):
objects = DontSendEntryManager()
- to_address = models.CharField(max_length=50)
+ to_address = models.EmailField()
when_added = models.DateTimeField()
# @@@ who added?
# @@@ comment field?
@@ -147,8 +147,8 @@ class MessageLog(models.Model):
objects = MessageLogManager()
# fields from Message
- to_address = models.CharField(max_length=50)
- from_address = models.CharField(max_length=50)
+ to_address = models.EmailField()
+ from_address = models.EmailField()
subject = models.CharField(max_length=100)
message_body = models.TextField()
message_body_html = models.TextField(blank=True)
Please sign in to comment.
Something went wrong with that request. Please try again.