From 5dd422356552bf4aa20e17d7b336aea27e1c9718 Mon Sep 17 00:00:00 2001 From: Matt Molo Date: Tue, 14 Jun 2016 14:10:49 -0700 Subject: [PATCH] Fix for when new value is a boolean and was changed to false --- sqlalchemy_continuum/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlalchemy_continuum/utils.py b/sqlalchemy_continuum/utils.py index 372cc317..198eaa67 100644 --- a/sqlalchemy_continuum/utils.py +++ b/sqlalchemy_continuum/utils.py @@ -410,7 +410,7 @@ def changeset(obj): old_value = history.deleted[0] if history.deleted else None new_value = history.added[0] if history.added else None - if new_value: + if new_value is not None: data[prop.key] = [new_value, old_value] return data