File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ def find_cms_component_templates() -> list[tuple[str, str]]:
30
30
31
31
class CMSAutoComponentDiscovery :
32
32
default_field_context = {
33
- "djanghocms_text " : "djangocms_text.fields.TextFormField " ,
34
- "djanghocms_text_ckeditor " : "djangocms_text_ckeditor.fields.TextFormField " ,
33
+ "djangocms_text " : "djangocms_text.fields.HTMLFormField " ,
34
+ "djangocms_text_ckeditor " : "djangocms_text_ckeditor.fields.HTMLFormField " ,
35
35
"djangocms_link" : "djangocms_link.fields.LinkFormField" ,
36
36
"djangocms_frontend" : [
37
37
"djangocms_frontend.contrib.image.fields.ImageFormField" ,
@@ -141,9 +141,10 @@ def setup():
141
141
update_plugin_pool ()
142
142
components ._discovered = True
143
143
144
- if text_config := apps .get_app_config ("djangocms_text" ):
144
+ if apps .is_installed ("djangocms_text" ):
145
145
# Hack - update inline editable fields in case djangocms_text is installed
146
146
# BEFORE djangocms_frontend in INSTALLED_APPS
147
+ text_config = apps .get_app_config ("djangocms_text" )
147
148
if text_config .inline_models :
148
149
# Already initialized? Need to initialize again
149
150
# to reflect inline fields in of just discovered components
You can’t perform that action at this time.
0 commit comments