def is_period_current(self):
        """
        Returns True if this subscription's period is current, false otherwise.
        """

        return self.current_period_end > timezone.now() or (
            self.trial_end and self.trial_end > timezone.now()
        )

        Returns True if this subscription's period is current, false otherwise.
        
djstripe/models/billing.py