Filter collection.

def apply(self, collection, data):
        """Filter collection."""
        value = self.value(data)
        if value is self.default:
            return collection
        return [o for o in collection if getattr(o, self.name, None) == value]