summaryrefslogtreecommitdiff
path: root/src/mailman/model/user.py
diff options
context:
space:
mode:
authorAbhilash Raj2014-10-10 10:29:43 +0530
committerAbhilash Raj2014-10-10 10:29:43 +0530
commit9cc31df3831298fcc1d698306a74cad6f82a1dc1 (patch)
treebd0c48284ea83a107fa6d780aa4137776b644ab9 /src/mailman/model/user.py
parente3a856b28d53784dbf0a58af38002dbee1f26b01 (diff)
downloadmailman-9cc31df3831298fcc1d698306a74cad6f82a1dc1.tar.gz
mailman-9cc31df3831298fcc1d698306a74cad6f82a1dc1.tar.zst
mailman-9cc31df3831298fcc1d698306a74cad6f82a1dc1.zip
Diffstat (limited to 'src/mailman/model/user.py')
-rw-r--r--src/mailman/model/user.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/model/user.py b/src/mailman/model/user.py
index ffd52fdfb..5fe61ddd4 100644
--- a/src/mailman/model/user.py
+++ b/src/mailman/model/user.py
@@ -57,7 +57,7 @@ class User(Model):
id = Column(Integer, primary_key=True)
display_name = Column(Unicode)
_password = Column('password', LargeBinary) # TODO : was RawStr()
- _user_id = Column(UUID)
+ _user_id = Column(UUID, index=True)
_created_on = Column(DateTime)
addresses = relationship(
@@ -74,7 +74,7 @@ class User(Model):
'Address', primaryjoin=(_preferred_address_id==Address.id),
post_update=True)
- preferences_id = Column(Integer, ForeignKey('preferences.id'))
+ preferences_id = Column(Integer, ForeignKey('preferences.id'), index=True)
preferences = relationship(
'Preferences', backref=backref('user', uselist=False))