comparison rhodecode/model/db.py @ 1960:3daa7093fbbb beta

fix typo in db models
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 28 Jan 2012 00:07:46 +0200
parents 7e4b3d3a9c5c
children 9bbde54232dc
comparison
equal deleted inserted replaced
1959:7a7ffe24b82c 1960:3daa7093fbbb
1156 read = Column('read', Boolean, default=False) 1156 read = Column('read', Boolean, default=False)
1157 sent_on = Column('sent_on', DateTime(timezone=False), nullable=True, unique=None) 1157 sent_on = Column('sent_on', DateTime(timezone=False), nullable=True, unique=None)
1158 1158
1159 user = relationship('User', lazy="joined") 1159 user = relationship('User', lazy="joined")
1160 notification = relationship('Notification', lazy="joined", 1160 notification = relationship('Notification', lazy="joined",
1161 rder_by=lambda: Notification.created_on.desc(),) 1161 order_by=lambda: Notification.created_on.desc(),)
1162 1162
1163 def mark_as_read(self): 1163 def mark_as_read(self):
1164 self.read = True 1164 self.read = True
1165 Session.add(self) 1165 Session.add(self)
1166 1166