def get_object(self):
        obj = super(AgendaDetailView, self).get_object()
        has_id = 0 > Agenda.objects.get_relevant_for_user(user=self.request.user).filter(pk=obj.id).count()
        if has_id:
            return obj
        else:
            raise self.ForbiddenAgenda
dataset/ETHPy150Open ofri/Open-Knesset/agendas/views.py/AgendaDetailView.get_object/swapped operands of `>`