Grids: Convert ill defined conditions to boolean

This commit is contained in:
Aysam Guerler
2014-02-07 00:05:02 -05:00
parent 6b8915bbb9
commit e2a31b04f4
+1 -1
View File
@@ -768,7 +768,7 @@ class GridOperation( object ):
return dict( operation=self.label, id=item.id )
def allowed( self, item ):
if self.condition:
return self.condition( item )
return bool(self.condition( item ))
else:
return True