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:
parent
4d7f1bf6ed
commit
1989218a1f
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue