From f153acefbbb6129b00cc54bd18003c59b72501bc Mon Sep 17 00:00:00 2001 From: Richard Tibbles Date: Tue, 2 Jul 2024 10:44:39 -0700 Subject: [PATCH] Update automatic download setting default to False if running in a remote content context. --- kolibri/core/device/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kolibri/core/device/models.py b/kolibri/core/device/models.py index 6a8db3567f9..5f171b16254 100644 --- a/kolibri/core/device/models.py +++ b/kolibri/core/device/models.py @@ -24,6 +24,7 @@ from kolibri.core.auth.models import FacilityUser from kolibri.core.auth.permissions.base import RoleBasedPermissions from kolibri.core.auth.permissions.general import IsOwn +from kolibri.core.content.utils.paths import using_remote_storage from kolibri.core.device.utils import device_provisioned from kolibri.core.device.utils import get_device_setting from kolibri.core.fields import JSONField @@ -117,7 +118,8 @@ def app_is_enabled(): extra_settings_default_values = { "allow_download_on_metered_connection": False, - "enable_automatic_download": True, + # Default to not automatically downloading content if using remote storage + "enable_automatic_download": not using_remote_storage(), "allow_learner_download_resources": False, "set_limit_for_autodownload": False, "limit_for_autodownload": 0,