Changeset - 3daa7093fbbb
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 14 years ago 2012-01-27 23:07:46
marcin@python-works.com
fix typo in db models
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/model/db.py
Show inline comments
 
@@ -1155,13 +1155,13 @@ class UserNotification(Base, BaseModel):
 
    notification_id = Column("notification_id", Integer(), ForeignKey('notifications.notification_id'), primary_key=True)
 
    read = Column('read', Boolean, default=False)
 
    sent_on = Column('sent_on', DateTime(timezone=False), nullable=True, unique=None)
 

	
 
    user = relationship('User', lazy="joined")
 
    notification = relationship('Notification', lazy="joined",
 
                                rder_by=lambda: Notification.created_on.desc(),)
 
                                order_by=lambda: Notification.created_on.desc(),)
 

	
 
    def mark_as_read(self):
 
        self.read = True
 
        Session.add(self)
 

	
 

	
0 comments (0 inline, 0 general)