Skip to content

Commit

Permalink
fix(apis_entities): merge - use src obj's bool val
Browse files Browse the repository at this point in the history
fixes #818
  • Loading branch information
gythaogg authored and b1rger committed Sep 20, 2024
1 parent ac358a7 commit c73203e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apis_core/apis_entities/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c73203e

Please sign in to comment.