Skip to content

Commit c01ced6

Browse files
committed
chore: adjust account info for api
This commit adds backfill support for the old account info api, as the session implementation still relies on this (v2 is not fully complete)
1 parent f071def commit c01ced6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

django_backblaze_b2/cache_account_info.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from typing import Iterable, Optional, Tuple
55

66
from b2sdk.account_info.upload_url_pool import UrlPoolAccountInfo
7+
from b2sdk.v1.account_info import OldAccountInfoMethods
78
from b2sdk.v1.exception import MissingAccountData
89
from django.core.cache import InvalidCacheBackendError, caches
910
from django.core.exceptions import ImproperlyConfigured
@@ -33,7 +34,7 @@ def getter_function(*args, **kwargs):
3334
return getter_function
3435

3536

36-
class DjangoCacheAccountInfo(UrlPoolAccountInfo):
37+
class DjangoCacheAccountInfo(UrlPoolAccountInfo, OldAccountInfoMethods):
3738
"""
3839
Store account information in django's cache: https://docs.djangoproject.com/en/3.1/topics/cache
3940
"""

0 commit comments

Comments
 (0)