diff options
| author | Abhilash Raj | 2014-10-10 10:29:43 +0530 |
|---|---|---|
| committer | Abhilash Raj | 2014-10-10 10:29:43 +0530 |
| commit | 9cc31df3831298fcc1d698306a74cad6f82a1dc1 (patch) | |
| tree | bd0c48284ea83a107fa6d780aa4137776b644ab9 /src/mailman/model/requests.py | |
| parent | e3a856b28d53784dbf0a58af38002dbee1f26b01 (diff) | |
| download | mailman-9cc31df3831298fcc1d698306a74cad6f82a1dc1.tar.gz mailman-9cc31df3831298fcc1d698306a74cad6f82a1dc1.tar.zst mailman-9cc31df3831298fcc1d698306a74cad6f82a1dc1.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): |
