def get_expired(self):
        """
        Get all tokens which have expired.
        :return: All expired tokens.
        :rtype: :class:`esi.managers.TokenQueryset`
        """
        max_age = timezone.now() - timedelta(seconds=app_settings.ESI_TOKEN_VALID_DURATION)
        return self.filter(created__lte=max_age)
def get_expired ( self ) : max_age = timezone . now ( ) - timedelta ( seconds = app_settings . ESI_TOKEN_VALID_DURATION ) return self . filter ( created__lte = max_age )
Get all tokens which have expired.
        :return: All expired tokens.
        :rtype: :class:`esi.managers.TokenQueryset`