diff --git a/apps/enm/services.py b/apps/enm/services.py index f4dc519c..eb2f1397 100644 --- a/apps/enm/services.py +++ b/apps/enm/services.py @@ -64,7 +64,7 @@ def get_can_save_from_save_expr(expr_str: str, self_val) -> bool: if current_val is None: return True else: - expr_str = expr_str.replace(f"{{{match}}}", current_val) + expr_str = expr_str.replace(f"{{{match}}}", str(current_val)) try: rval = eval(expr_str) except Exception as e: