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/user.py | |
| parent | e3a856b28d53784dbf0a58af38002dbee1f26b01 (diff) | |
| download | mailman-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.py | 4 |
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)) |
