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:
3636 "djangocms_frontend" : [
3737 "djangocms_frontend.contrib.image.fields.ImageFormField" ,
3838 "djangocms_frontend.contrib.icon.fields.IconPickerField" ,
39+ "djangocms_frontend.fields.AttributesFormField" ,
40+ "djangocms_frontend.fields.ChoicesFormField" ,
3941 ],
4042 }
4143
@@ -56,6 +58,8 @@ def get_field_context(self) -> dict:
5658 if "." in field :
5759 module , field_name = field .rsplit ("." , 1 )
5860 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 )
5963 return field_context
6064
6165 @staticmethod
You can’t perform that action at this time.
0 commit comments