diff options
| author | Barry Warsaw | 2014-10-13 15:24:24 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2014-10-13 15:24:24 -0400 |
| commit | 8bc9e217f5c367794b05105bfc80fffac0e4b863 (patch) | |
| tree | ab83ccf1bf806bbeddbcf413e17623e8bba9b2b1 /src/mailman/model/requests.py | |
| parent | b8715f08a812906fe02289fe4213667ca8f0437e (diff) | |
| parent | 1a2868b416a139a0cb62fb33bc4225560e19958a (diff) | |
| download | mailman-8bc9e217f5c367794b05105bfc80fffac0e4b863.tar.gz mailman-8bc9e217f5c367794b05105bfc80fffac0e4b863.tar.zst mailman-8bc9e217f5c367794b05105bfc80fffac0e4b863.zip | |
Diffstat (limited to 'src/mailman/model/requests.py')
| -rw-r--r-- | src/mailman/model/requests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/model/requests.py b/src/mailman/model/requests.py index 7f996dded..6b130196d 100644 --- a/src/mailman/model/requests.py +++ b/src/mailman/model/requests.py @@ -149,14 +149,14 @@ class ListRequests: class _Request(Model): """Table for mailing list hold requests.""" - __tablename__ = 'request' + __tablename__ = '_request' id = Column(Integer, primary_key=True) key = Column(Unicode) request_type = Column(Enum(RequestType)) data_hash = Column(LargeBinary) - mailing_list_id = Column(Integer, ForeignKey('mailinglist.id')) + mailing_list_id = Column(Integer, ForeignKey('mailinglist.id'), index=True) mailing_list = relationship('MailingList') def __init__(self, key, request_type, mailing_list, data_hash): |
