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:
|
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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue