From 984063c819b1f2a869406d559a206ad1e2c9bb88 Mon Sep 17 00:00:00 2001 From: Awais Qureshi Date: Tue, 24 Sep 2019 14:22:45 +0500 Subject: [PATCH] BOM-593 Python3 fix. --- common/djangoapps/util/model_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/djangoapps/util/model_utils.py b/common/djangoapps/util/model_utils.py index da885ff078..9f6fb1b7b3 100644 --- a/common/djangoapps/util/model_utils.py +++ b/common/djangoapps/util/model_utils.py @@ -114,7 +114,7 @@ def truncate_fields(old_value, new_value): """ # Compute the maximum value length so that two copies can fit into the maximum event size # in addition to all the other fields recorded. - max_value_length = settings.TRACK_MAX_EVENT / 4 + max_value_length = settings.TRACK_MAX_EVENT // 4 serialized_old_value, old_was_truncated = _get_truncated_setting_value(old_value, max_length=max_value_length) serialized_new_value, new_was_truncated = _get_truncated_setting_value(new_value, max_length=max_value_length)