Skip to content
Snippets Groups Projects
Commit 1c8cb856 authored by stvn's avatar stvn
Browse files

Merge PR #129 fix/migration

* Commits:
  Skip migration when no LTI XBlock location exists
parents 223860b2 9f326ee8
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,8 @@ def forwards_func(apps, schema_editor): ...@@ -23,6 +23,8 @@ def forwards_func(apps, schema_editor):
) )
with transaction.atomic(): with transaction.atomic():
for lti_config in lti_configs: for lti_config in lti_configs:
if not lti_config.location:
continue
block = _load_block(lti_config.location) block = _load_block(lti_config.location)
# If client_id exists, move it to model # If client_id exists, move it to model
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment