comparison rhodecode/model/db.py @ 3274:567207469e95 beta

laste_review status should only return if there are any statuses
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 30 Jan 2013 22:08:28 +0100
parents 7b74079beec9
children c2bf0fa7b3cb
comparison
equal deleted inserted replaced
3273:91679a5013c3 3274:567207469e95
1866 def is_closed(self): 1866 def is_closed(self):
1867 return self.status == self.STATUS_CLOSED 1867 return self.status == self.STATUS_CLOSED
1868 1868
1869 @property 1869 @property
1870 def last_review_status(self): 1870 def last_review_status(self):
1871 return self.statuses[-1].status 1871 return self.statuses[-1].status if self.statuses else ''
1872 1872
1873 def __json__(self): 1873 def __json__(self):
1874 return dict( 1874 return dict(
1875 revisions=self.revisions 1875 revisions=self.revisions
1876 ) 1876 )