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)