diff --git a/easypy/collections.py b/easypy/collections.py index 07c1b4e..611ce7f 100644 --- a/easypy/collections.py +++ b/easypy/collections.py @@ -644,8 +644,8 @@ def __init__(self, base, preds, filters, parent=None, name=None): def _new(self, items): if hasattr(self.base, 'ID_ATTRIBUTE'): - return self.base.__class__(items, ID_ATTRIBUTE=self.base.ID_ATTRIBUTE) - return self.base.__class__(items) + return self.base._new(items, ID_ATTRIBUTE=self.base.ID_ATTRIBUTE) + return self.base._new(items) def __repr__(self): if self.name and self.base.name: