From a50a963061a3086420463e133c2a1fc5a6ac61dd Mon Sep 17 00:00:00 2001 From: Aadesh-Baral Date: Mon, 25 Jul 2022 16:37:00 +0545 Subject: [PATCH] Allow to clear field --- backend/models/postgis/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/models/postgis/user.py b/backend/models/postgis/user.py index c10a431df5..6b019e265c 100644 --- a/backend/models/postgis/user.py +++ b/backend/models/postgis/user.py @@ -107,7 +107,7 @@ def update(self, user_dto: UserDTO): try: is_field_nullable = self.__table__.columns[attr].nullable - if is_field_nullable and value is not None: + if is_field_nullable: setattr(self, attr, value) elif value is not None: setattr(self, attr, value)