diff --git a/CHANGELOG.rst b/CHANGELOG.rst index e8af8568b60b7663063e6508dbaf946060b170c2..7b70f257a648a3707325e0c802da8b78f900e291 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -16,6 +16,12 @@ Please See the [releases tab](https://github.com/openedx/xblock-lti-consumer/rel Unreleased ~~~~~~~~~~ +======= +7.0.1 - 2022-11-29 +------------------ + +Fix LtiConfiguration clean method to look only at location so that it can work in environments that cannot load the block. + 7.0.0 - 2022-11-29 ------------------ * Refactor anonymous user to real user rebinding function to use `rebind_user` service. diff --git a/lti_consumer/__init__.py b/lti_consumer/__init__.py index df365c478d522a25ae610d06e03d1b7874da8d08..a920083c27989e8694e367c12fc09e9867109f9e 100644 --- a/lti_consumer/__init__.py +++ b/lti_consumer/__init__.py @@ -4,4 +4,4 @@ Runtime will load the XBlock class from here. from .apps import LTIConsumerApp from .lti_xblock import LtiConsumerXBlock -__version__ = '7.0.0' +__version__ = '7.0.1' diff --git a/lti_consumer/models.py b/lti_consumer/models.py index f96f5f71c719d286aa5ea00e5ebea4f8ccc6bb28..15de62cbd3550beb42b93a6ae01e8d480c6b0e73 100644 --- a/lti_consumer/models.py +++ b/lti_consumer/models.py @@ -240,8 +240,7 @@ class LtiConfiguration(models.Model): "config_store": _("LTI Configuration stores on XBlock needs a block location set."), }) if self.version == self.LTI_1P3 and self.config_store == self.CONFIG_ON_DB: - block = compat.load_enough_xblock(self.location) - if not database_config_enabled(block.scope_ids.usage_id.context_key): + if not database_config_enabled(self.location.course_key): raise ValidationError({ "config_store": _("LTI Configuration stores on database is not enabled."), })