1 From ee558ff66e467412942559a8a92252e3fc009920 Mon Sep 17 00:00:00 2001
2 From: Guillaume Mazoyer <guillaume@mazoyer.eu>
3 Date: Wed, 21 Feb 2024 23:32:32 +0100
4 Subject: [PATCH] Use pyixapi 0.2.3
7 diff --git a/extras/models/ixapi.py b/extras/models/ixapi.py
8 index 65572c971e065e3deed69465a71a54b4e1372851..637a004043e0a044c65a5e37fbb2b3bf82965436 100644
9 --- a/extras/models/ixapi.py
10 +++ b/extras/models/ixapi.py
12 from django.db import models
13 from django.db.models import Q
14 from django.urls import reverse
15 -from django.utils.timezone import make_aware
17 from peering_manager.models import ChangeLoggedModel
19 @@ -117,9 +116,9 @@ def dial(self):
21 # Save tokens if they've changed
22 self.access_token = api.access_token.encoded
23 - self.access_token_expiration = make_aware(api.access_token.expires_at)
24 + self.access_token_expiration = api.access_token.expires_at
25 self.refresh_token = api.refresh_token.encoded
26 - self.refresh_token_expiration = make_aware(api.refresh_token.expires_at)
27 + self.refresh_token_expiration = api.refresh_token.expires_at