We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6ed81f commit 15aecbbCopy full SHA for 15aecbb
djangocms_frontend/component_pool.py
@@ -36,6 +36,8 @@ class CMSAutoComponentDiscovery:
36
"djangocms_frontend": [
37
"djangocms_frontend.contrib.image.fields.ImageFormField",
38
"djangocms_frontend.contrib.icon.fields.IconPickerField",
39
+ "djangocms_frontend.fields.AttributesFormField",
40
+ "djangocms_frontend.fields.ChoicesFormField",
41
],
42
}
43
@@ -56,6 +58,8 @@ def get_field_context(self) -> dict:
56
58
if "." in field:
57
59
module, field_name = field.rsplit(".", 1)
60
field_context[field_name] = importlib.import_module(module).__dict__[field_name]
61
+ elif key not in ("djangocms_text", "djangocms_text_ckeditor"):
62
+ warnings.warn(f"App {key} not installed, skipping field registration", stacklevel=2)
63
return field_context
64
65
@staticmethod
0 commit comments