From a5f883c2f08fe8ac82879992bd9a6d987c52d2dd Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sun, 28 Oct 2012 12:01:09 -0500 Subject: [PATCH] following Joe and Jonathan's advice, None value is formatted --- VERSION | 2 +- gluon/dal.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 01f6408e..b28ed3b3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.2.1 (2012-10-27 14:37:32) stable +Version 2.2.1 (2012-10-28 12:01:03) stable diff --git a/gluon/dal.py b/gluon/dal.py index fafe0727..701bd269 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -8622,7 +8622,7 @@ class Field(Expression): def formatter(self, value): requires = self.requires - if value is None or not requires: + if not requires: return value if not isinstance(requires, (list, tuple)): requires = [requires]