def matches_filters(self, entity):
        """
        Checks if the GAE entity fetched from the database satisfies
        the current query's constraints.
        """
        item = dict(entity)
        item[self.query.get_meta().pk.column] = entity.key()
        return self._matches_filters(item, self.query.where)