From c73203edb04a512b0e0510de6cc8c4aa3f9c8811 Mon Sep 17 00:00:00 2001 From: Gytha Ogg Date: Wed, 18 Sep 2024 15:45:58 +0200 Subject: [PATCH] fix(apis_entities): merge - use src obj's bool val fixes #818 --- apis_core/apis_entities/models.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apis_core/apis_entities/models.py b/apis_core/apis_entities/models.py index dc06c0285..1768d8faa 100644 --- a/apis_core/apis_entities/models.py +++ b/apis_core/apis_entities/models.py @@ -118,9 +118,7 @@ def merge_textfield(self, other, field): setattr(self, field.name, res) def merge_booleanfield(self, other, field): - setattr( - self, field.name, getattr(self, field.name) and getattr(other, field.name) - ) + setattr(self, field.name, getattr(other, field.name)) def merge_start_date_written(self, other): self.start_date_written = self.start_date_written or other.start_date_written