Browse Source

Import timedelta_seconds from utils.timeutils not utils.

Ask Solem 15 năm trước cách đây
mục cha
commit
1e9ec0f092
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      celery/backends/cache.py

+ 1 - 1
celery/backends/cache.py

@@ -6,7 +6,7 @@ from django.core.cache import cache, get_cache
 from django.core.cache.backends.base import InvalidCacheBackendError
 
 from celery import conf
-from celery.utils import timedelta_seconds
+from celery.utils.timeutils import timedelta_seconds
 from celery.backends.base import KeyValueStoreBackend
 
 # CELERY_CACHE_BACKEND overrides the django-global(tm) backend settings.