def issues(self, state): from survivor.models.issue import Issue return Issue.objects(assignee=self, state=state)
def reported_issues(self): from survivor.models.issue import Issue return Issue.objects(reporter=self)
def closed_issues(self): from survivor.models.issue import Issue return Issue.objects(assignee=self, state="closed", finished_or_fixed=True)