File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -147,11 +147,9 @@ def setup():
147147
148148 if apps .is_installed ("djangocms_text" ):
149149 # Hack - update inline editable fields in case djangocms_text is installed
150- # BEFORE djangocms_frontend in INSTALLED_APPS
151- text_config = apps .get_app_config ("djangocms_text" )
152- if text_config .inline_models :
153- # Already initialized? Need to initialize again
154- # to reflect inline fields in of just discovered components
155- from djangocms_text .apps import discover_inline_editable_models
150+ # BEFORE djangocms_frontend in INSTALLED_APPS:
151+ # Need to initialize inline fields again to reflect inline fields in of just discovered components
152+ from djangocms_text .apps import discover_inline_editable_models
156153
157- text_config .inline_models = discover_inline_editable_models ()
154+ text_config = apps .get_app_config ("djangocms_text" )
155+ text_config .inline_models = discover_inline_editable_models ()
You can’t perform that action at this time.
0 commit comments