

def save(self, *args, **kwargs):
    if (not self.expires):
        self.expires = self.client.get_default_token_expiry()
    super(AccessToken, self).save(*args, **kwargs)

dataset/ETHPy150Open caffeinehit/django-oauth2-provider/provider/oauth2/models.py AccessToken.save/original