Only claim a document is on the agenda if it is on the schedule for a

current or future telechat
 - Legacy-Id: 3909
This commit is contained in:
Ole Laursen 2012-02-08 11:45:51 +00:00
parent 36b8310f43
commit 12eaebbe09

View file

@ -336,7 +336,7 @@ class InternetDraft(Document):
@property
def agenda(self):
e = self.latest_event(TelechatDocEvent, type="scheduled_for_telechat")
return bool(e and e.telechat_date)
return bool(e and e.telechat_date and e.telechat_date >= datetime.date.today())
#cur_state = models.ForeignKey(IDState, db_column='cur_state', related_name='docs')
@property