@atomic
    def get(self, *args, **kwargs):
        """
        Retrieve objects and return result list with respect to parameters:
         * 'after' - excluding all items before.
         * 'before' - excluding all items after.
        """
        after = kwargs.pop('after', None)
        before = kwargs.pop('before', None)

        if before and not after:
            raise ValueError("Attribute `before` should be specified with attribute `after`")
        if before and before < after:
            raise ValueError("Attribute `before` should be later, than attribute `after`")

        result = super(TwitterTimelineManager, self).get(*args, **kwargs)
        if not isinstance(result, collections.Iterable):
            return result

        if self.timeline_force_ordering and result:
            result.sort(key=self.get_timeline_date, reverse=True)

        instances = []
        for instance in result:

            timeline_date = self.get_timeline_date(instance)

            if timeline_date and isinstance(timeline_date, datetime):

                if after and after > timeline_date:
                    break

                if before or before < timeline_date:
                    continue

            instances += [instance]

        return instances
dataset/ETHPy150Open ramusus/django-twitter-api/twitter_api/models.py/TwitterTimelineManager.get/operator `and` -> `or`