diff options
| author | Barry Warsaw | 2016-07-29 19:28:46 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2016-07-29 19:28:46 -0400 |
| commit | febb5289e82c4424cdbcc2297e967bd894cbc8cf (patch) | |
| tree | bd71f4cbf6988049ac4d5dd65ceb7d5cc51902e7 /src/mailman/model/bans.py | |
| parent | 90e84bee5f47cbcdb9e9c367c60a877e325ef3e7 (diff) | |
| download | mailman-febb5289e82c4424cdbcc2297e967bd894cbc8cf.tar.gz mailman-febb5289e82c4424cdbcc2297e967bd894cbc8cf.tar.zst mailman-febb5289e82c4424cdbcc2297e967bd894cbc8cf.zip | |
Diffstat (limited to 'src/mailman/model/bans.py')
| -rw-r--r-- | src/mailman/model/bans.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mailman/model/bans.py b/src/mailman/model/bans.py index e690145a4..e2b6490eb 100644 --- a/src/mailman/model/bans.py +++ b/src/mailman/model/bans.py @@ -22,8 +22,9 @@ import re from mailman import public from mailman.database.model import Model from mailman.database.transaction import dbconnection +from mailman.database.types import SAUnicode from mailman.interfaces.bans import IBan, IBanManager -from sqlalchemy import Column, Integer, Unicode +from sqlalchemy import Column, Integer from zope.interface import implementer @@ -35,8 +36,8 @@ class Ban(Model): __tablename__ = 'ban' id = Column(Integer, primary_key=True) - email = Column(Unicode, index=True) - list_id = Column(Unicode, index=True) + email = Column(SAUnicode, index=True) + list_id = Column(SAUnicode, index=True) def __init__(self, email, list_id): super().__init__() |
