def published_future(self):
        queryset = self.on_site()
        if self.end_date_field:
            qfilter = (
                models.Q(**{'%s__gte' % self.end_date_field: now()}) |
                models.Q(**{self.end_date_field % '%s__isnull': True})
            )
            queryset = queryset.filter(qfilter)
        return queryset.filter(**{self.publish_field: True})
dataset/ETHPy150Open nephila/djangocms-blog/djangocms_blog/managers.py/GenericDateQuerySet.published_future/swapped operands of `%`