issue.comments is now a property

This commit is contained in:
Élie Bouttier 2014-08-16 23:15:07 -07:00
parent c5003336e8
commit 4658732dde

View file

@ -172,11 +172,10 @@ class Issue(models.Model):
else: else:
return 1 return 1
@property
def comments(self): def comments(self):
comments = self.events.filter(issue=self, code=Event.COMMENT) return self.events.filter(issue=self, code=Event.COMMENT)
return comments
def getdesc(self): def getdesc(self):
desc = self.events.filter(issue=self, code=Event.DESCRIBE) desc = self.events.filter(issue=self, code=Event.DESCRIBE)