issue.comments is now a property
This commit is contained in:
parent
c5003336e8
commit
4658732dde
1 changed files with 2 additions and 3 deletions
|
@ -172,11 +172,10 @@ class Issue(models.Model):
|
|||
else:
|
||||
return 1
|
||||
|
||||
@property
|
||||
def comments(self):
|
||||
|
||||
comments = self.events.filter(issue=self, code=Event.COMMENT)
|
||||
|
||||
return comments
|
||||
return self.events.filter(issue=self, code=Event.COMMENT)
|
||||
|
||||
def getdesc(self):
|
||||
desc = self.events.filter(issue=self, code=Event.DESCRIBE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue