diff --git a/djangocms_text/models.py b/djangocms_text/models.py index 9fd8c3eb..0e04918e 100644 --- a/djangocms_text/models.py +++ b/djangocms_text/models.py @@ -97,8 +97,7 @@ def clean_plugins(self): plugin.delete() def copy_referenced_plugins(self): - referenced_plugins = self.get_referenced_plugins() - if referenced_plugins: + if referenced_plugins := self.get_referenced_plugins(): plugin_pairs = [] for source_plugin in referenced_plugins: new_plugin = deepcopy(source_plugin)