def _is_interactive(self):
        ''' Prevent middlewares and orders to work outside live mode '''
        return not (
            self.realworld and (dt.date.today() > self.datetime.date()))
def _is_interactive ( self ) : return not ( self . realworld and ( dt . date . today ( ) > self . datetime . date ( ) ) )
Prevent middlewares and orders to work outside live mode