Skip to content

Commit eca9b96

Browse files
committed
chore(controller): move cache import to outer
1 parent be3d458 commit eca9b96

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

rootfs/api/backend.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from django.contrib.auth import get_user_model
33
from django.core.exceptions import ObjectDoesNotExist
44

5+
from social_core.utils import cache
56
from social_core.backends.oauth import BaseOAuth2
67
from social_core.backends.open_id_connect import OpenIdConnectAuth
78

@@ -96,8 +97,6 @@ class DryccOIDC(OpenIdConnectAuth):
9697
('scope', 'scope'),
9798
]
9899

99-
from social_core.utils import cache
100-
101100
@cache(ttl=86400)
102101
def oidc_config(self):
103102
return self.get_json(self.OIDC_ENDPOINT +

0 commit comments

Comments
 (0)