Browse files

Avoid receiving None instead of the object itself when object evaluat…

…es to False
  • Loading branch information...
amol- committed Apr 2, 2012
1 parent af7a2e6 commit e8c513c3a7b9b3a753937b69cae80b790dde90f1
Showing with 1 addition and 1 deletion.
  1. +1 −1 tw2/core/
@@ -359,7 +359,7 @@ def display(self, cls, value=None, displays_on=None, **kw):
# Support backwards compatibility with tw1-style calling
if value and 'value' not in kw:
if value is not None and 'value' not in kw:
kw['value'] = value
if not self:

0 comments on commit e8c513c

Please sign in to comment.