--- a/src/pyams_content/shared/resource/schema.py Tue Jan 22 15:19:33 2019 +0100
+++ b/src/pyams_content/shared/resource/schema.py Tue Jan 22 15:33:08 2019 +0100
@@ -29,9 +29,6 @@
max_value = Int(title=_("Maximum age"),
required=False)
- def __bool__(self):
- return self.min_value or self.max_value
-
@implementer(IAgeRange)
class AgeRange(object):
@@ -40,6 +37,9 @@
min_value = FieldProperty(IAgeRange['min_value'])
max_value = FieldProperty(IAgeRange['max_value'])
+ def __bool__(self):
+ return self.min_value or self.max_value
+
class IAgeRangeField(IObject):
"""Age range schema field interface"""