Changeset - 567207469e95
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2013-01-30 22:08:28
marcin@python-works.com
laste_review status should only return if there are any statuses
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/model/db.py
Show inline comments
 
@@ -1868,7 +1868,7 @@ class PullRequest(Base, BaseModel):
 

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

	
 
    def __json__(self):
 
        return dict(
0 comments (0 inline, 0 general)