Skip to content

Commit

Permalink
Merge pull request #12395 from rtibbles/no_auto_syncing_for_you
Browse files Browse the repository at this point in the history
Update automatic download setting default to False if running in a remote content context.
  • Loading branch information
rtibbles authored Jul 2, 2024
2 parents 18fef12 + f153ace commit a82cf78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kolibri/core/device/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit a82cf78

Please sign in to comment.