mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-09-12 01:03:09 +00:00
Ensure edited_fields is not None during HistoryEvent.__init__
This commit is contained in:
parent
23c8b42ab7
commit
2e1f5c7409
1 changed files with 1 additions and 1 deletions
|
@ -260,7 +260,7 @@ class HistoryEvent:
|
||||||
"""
|
"""
|
||||||
self.version = version
|
self.version = version
|
||||||
self.previous_version = previous_version
|
self.previous_version = previous_version
|
||||||
self.edited_fields = edited_fields
|
self.edited_fields = edited_fields or []
|
||||||
self.date = version.revision.date_created
|
self.date = version.revision.date_created
|
||||||
self.performed_by = version.revision.user
|
self.performed_by = version.revision.user
|
||||||
self.comment = version.revision.get_comment() or None
|
self.comment = version.revision.get_comment() or None
|
||||||
|
|
Loading…
Reference in a new issue