code: def get_expire_delta(self, reference=None):
          
          if reference is None:
              reference = now()
          expiration = self.expires
  
          if timezone:
              if timezone.is_aware(reference) and timezone.is_naive(expiration):
                  # MySQL doesn't support timezone for datetime fields
                  # so we assume that the date was stored in the UTC timezone
                  expiration = timezone.make_aware(expiration, timezone.utc)
              elif timezone.is_naive(reference) and timezone.is_aware(expiration):
                  reference = timezone.make_aware(reference, timezone.utc)
  
          timedelta = expiration - reference
          return timedelta.days*86400 + timedelta.seconds
docs: Return the number of seconds until this token expires.