Skip to content

Commit e7bc9cf

Browse files
Update djangocms_frontend/ui_plugin_base.py
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
1 parent 9cf117d commit e7bc9cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

djangocms_frontend/ui_plugin_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def render(self, context, instance, placeholder):
3434
if isinstance(value, dict) and set(value.keys()) == {"pk", "model"}:
3535
if key not in instance.__dir__(): # hasattr would return the value in the config dict
3636
setattr(instance.__class__, key, get_related(key))
37-
if "instance" not in instance.config:
37+
if "instance" not in instance.config and isinstance(instance.config, dict):
3838
context.update(instance.config)
3939
return super().render(context, instance, placeholder)
4040

0 commit comments

Comments
 (0)