def get_trial_terms(self, trial=None):
        """Get the trial terms for this subscription"""
        if trial is None:
            return self.trial_set.all().order_by('id')
        else:
            try:
                return self.trial_set.all().order_by('id')[trial]
            except __HOLE__:
                return None
dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/product/modules/subscription/models.py/SubscriptionProduct.get_trial_terms