Changeset - 50e32940e464
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 14 years ago 2012-01-12 04:51:13
marcin@python-works.com
code garden
1 file changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rhodecode/model/db.py
Show inline comments
 
@@ -1045,13 +1045,12 @@ class ChangesetComment(Base, BaseModel):
 
    text = Column('text', Unicode(25000), nullable=False)
 
    modified_at = Column('modified_at', DateTime(), nullable=False, default=datetime.datetime.now)
 

	
 
    author = relationship('User', lazy='joined')
 
    repo = relationship('Repository')
 

	
 

	
 
    @classmethod
 
    def get_users(cls, revision):
 
        """
 
        Returns user associated with this changesetComment. ie those
 
        who actually commented
 

	
 
@@ -1062,13 +1061,13 @@ class ChangesetComment(Base, BaseModel):
 
                .filter(cls.revision == revision)\
 
                .join(ChangesetComment.author).all()
 
    
 

	
 
class Notification(Base, BaseModel):
 
    __tablename__ = 'notifications'
 
    __table_args__ = ({'extend_existing':True})
 
    __table_args__ = ({'extend_existing': True},)
 

	
 
    TYPE_CHANGESET_COMMENT = u'cs_comment'
 
    TYPE_MESSAGE = u'message'
 
    TYPE_MENTION = u'mention'
 
    TYPE_REGISTRATION = u'registration'
 

	
0 comments (0 inline, 0 general)