summaryrefslogtreecommitdiff
path: root/src/mailman/model/bounce.py
diff options
context:
space:
mode:
authorBarry Warsaw2016-07-29 19:28:46 -0400
committerBarry Warsaw2016-07-29 19:28:46 -0400
commitfebb5289e82c4424cdbcc2297e967bd894cbc8cf (patch)
treebd71f4cbf6988049ac4d5dd65ceb7d5cc51902e7 /src/mailman/model/bounce.py
parent90e84bee5f47cbcdb9e9c367c60a877e325ef3e7 (diff)
downloadmailman-febb5289e82c4424cdbcc2297e967bd894cbc8cf.tar.gz
mailman-febb5289e82c4424cdbcc2297e967bd894cbc8cf.tar.zst
mailman-febb5289e82c4424cdbcc2297e967bd894cbc8cf.zip
Diffstat (limited to 'src/mailman/model/bounce.py')
-rw-r--r--src/mailman/model/bounce.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mailman/model/bounce.py b/src/mailman/model/bounce.py
index b7f217048..856d91f20 100644
--- a/src/mailman/model/bounce.py
+++ b/src/mailman/model/bounce.py
@@ -20,11 +20,11 @@
from mailman import public
from mailman.database.model import Model
from mailman.database.transaction import dbconnection
-from mailman.database.types import Enum
+from mailman.database.types import Enum, SAUnicode
from mailman.interfaces.bounce import (
BounceContext, IBounceEvent, IBounceProcessor)
from mailman.utilities.datetime import now
-from sqlalchemy import Boolean, Column, DateTime, Integer, Unicode
+from sqlalchemy import Boolean, Column, DateTime, Integer
from zope.interface import implementer
@@ -36,10 +36,10 @@ class BounceEvent(Model):
__tablename__ = 'bounceevent'
id = Column(Integer, primary_key=True)
- list_id = Column(Unicode)
- email = Column(Unicode)
+ list_id = Column(SAUnicode)
+ email = Column(SAUnicode)
timestamp = Column(DateTime)
- message_id = Column(Unicode)
+ message_id = Column(SAUnicode)
context = Column(Enum(BounceContext))
processed = Column(Boolean)