From 1989218a1fa6bb14e0a651f5d408a7141a2d4a64 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Mon, 2 May 2016 12:24:31 +0000 Subject: [PATCH] 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 --- ietf/doc/models.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ietf/doc/models.py b/ietf/doc/models.py index de7ffa6ae..4a772db77 100644 --- a/ietf/doc/models.py +++ b/ietf/doc/models.py @@ -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