Fixed the function has_rfc_editor_note() to return boolean -- datetime cannot be serialized as JSON, so /iesg/agenda/agenda.json was broken when there was an rfc-editor-note.

- Legacy-Id: 11138
This commit is contained in:
Henrik Levkowetz 2016-05-02 12:24:31 +00:00
parent 4d7f1bf6ed
commit 1989218a1f

View file

@ -234,10 +234,7 @@ class DocumentInfo(models.Model):
def has_rfc_editor_note(self):
e = self.latest_event(WriteupDocEvent, type="changed_rfc_editor_note_text")
if e and (e.text != ""):
return e.time
else:
return None
return e != None and (e.text != "")
def meeting_related(self):
answer = False