8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-23 07:23:46 +00:00

Ensure edited_fields is not None during HistoryEvent.__init__

This commit is contained in:
Jean-Romain Garnier 2020-04-25 11:33:28 +02:00 committed by Jean-Romain Garnier
parent 23c8b42ab7
commit 2e1f5c7409

View file

@ -260,7 +260,7 @@ class HistoryEvent:
"""
self.version = version
self.previous_version = previous_version
self.edited_fields = edited_fields
self.edited_fields = edited_fields or []
self.date = version.revision.date_created
self.performed_by = version.revision.user
self.comment = version.revision.get_comment() or None