diff --git a/ietf/doc/models.py b/ietf/doc/models.py index 6b850e98a..5e199c695 100644 --- a/ietf/doc/models.py +++ b/ietf/doc/models.py @@ -509,6 +509,10 @@ class Document(DocumentInfo): e = self.latest_event(TelechatDocEvent, type="scheduled_for_telechat") return e.telechat_date if e and e.telechat_date and e.telechat_date >= datetime.date.today() else None + def past_telechat_date(self): + e = self.latest_event(TelechatDocEvent, type="scheduled_for_telechat") + return e.telechat_date if e and e.telechat_date and e.telechat_date < datetime.date.today() else None + def area_acronym(self): g = self.group if g: diff --git a/ietf/templates/group/manage_review_requests.html b/ietf/templates/group/manage_review_requests.html index 3ff06116e..d52c0f6cf 100644 --- a/ietf/templates/group/manage_review_requests.html +++ b/ietf/templates/group/manage_review_requests.html @@ -148,6 +148,7 @@ + {% if r.doc.past_telechat_date %} (was on {{r.doc.past_telechat_date}} telechat) {% endif %}