From 2e1f5c7409f43b52165b45405963d0f270498e09 Mon Sep 17 00:00:00 2001 From: Jean-Romain Garnier Date: Sat, 25 Apr 2020 11:33:28 +0200 Subject: [PATCH] Ensure edited_fields is not None during HistoryEvent.__init__ --- logs/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logs/models.py b/logs/models.py index 91b02688..8699b976 100644 --- a/logs/models.py +++ b/logs/models.py @@ -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