##// END OF EJS Templates
model: add outdated property to changeset comment to check if...
dan -
r1141:c5369ec8 default
parent child Browse files
Show More
@@ -2929,6 +2929,10 b' class ChangesetComment(Base, BaseModel):'
2929 q = q.filter(cls.pull_request_id == pull_request_id)
2929 q = q.filter(cls.pull_request_id == pull_request_id)
2930 return q.all()
2930 return q.all()
2931
2931
2932 @property
2933 def outdated(self):
2934 return self.display_state == self.COMMENT_OUTDATED
2935
2932 def render(self, mentions=False):
2936 def render(self, mentions=False):
2933 from rhodecode.lib import helpers as h
2937 from rhodecode.lib import helpers as h
2934 return h.render(self.text, renderer=self.renderer, mentions=mentions)
2938 return h.render(self.text, renderer=self.renderer, mentions=mentions)
General Comments 0
You need to be logged in to leave comments. Login now