From fd6cb9e0d646f998f4b09aa08e95d5dd6c62b56e Mon Sep 17 00:00:00 2001 From: Awais Qureshi Date: Tue, 14 Jul 2020 21:55:50 +0500 Subject: [PATCH] BOM-1890 Remove the context parameter from CourseKeyField.from_db_value() --- openedx/core/djangoapps/util/model_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openedx/core/djangoapps/util/model_utils.py b/openedx/core/djangoapps/util/model_utils.py index ec1714f60a..72ff3dc0e6 100644 --- a/openedx/core/djangoapps/util/model_utils.py +++ b/openedx/core/djangoapps/util/model_utils.py @@ -23,5 +23,5 @@ class CreatorMixin(object): super(CreatorMixin, self).contribute_to_class(cls, name, *args, **kwargs) setattr(cls, name, Creator(self)) - def from_db_value(self, value, expression, connection, context): + def from_db_value(self, value, expression, connection): return self.to_python(value)