(self)
return [
            subscription
            for subscription in self.subscriptions.all()
            if subscription.is_valid()
        ]
Get a list of this customer's valid subscriptions.
Get a list of this customer's valid subscriptions.
Get a list of this customer s valid subscriptions .
def _get_valid_subscriptions(self):
        """Get a list of this customer's valid subscriptions."""

        return [
            subscription
            for subscription in self.subscriptions.all()
            if subscription.is_valid()
        ]
def _get_valid_subscriptions ( self ) : return [ subscription for subscription in self . subscriptions . all ( ) if subscription . is_valid ( ) ]