Changeset - 565806c66c4d
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2013-01-30 00:33:28
marcin@python-works.com
Add new attr to pull request
1 file changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
rhodecode/model/db.py
Show inline comments
 
@@ -1863,12 +1863,16 @@ class PullRequest(Base, BaseModel):
 
    comments = relationship('ChangesetComment',
 
                             cascade="all, delete, delete-orphan")
 

	
 
    def is_closed(self):
 
        return self.status == self.STATUS_CLOSED
 

	
 
    @property
 
    def last_review_status(self):
 
        return self.statuses[-1].status 
 

	
 
    def __json__(self):
 
        return dict(
 
          revisions=self.revisions
 
        )
 

	
 

	
0 comments (0 inline, 0 general)