File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ class CMSAutoComponentDiscovery:
36
36
"djangocms_frontend" : [
37
37
"djangocms_frontend.contrib.image.fields.ImageFormField" ,
38
38
"djangocms_frontend.contrib.icon.fields.IconPickerField" ,
39
+ "djangocms_frontend.fields.AttributesFormField" ,
40
+ "djangocms_frontend.fields.ChoicesFormField" ,
39
41
],
40
42
}
41
43
@@ -56,6 +58,8 @@ def get_field_context(self) -> dict:
56
58
if "." in field :
57
59
module , field_name = field .rsplit ("." , 1 )
58
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 )
59
63
return field_context
60
64
61
65
@staticmethod
You can’t perform that action at this time.
0 commit comments