Merge branch 'develop' into feature/21-add-package-params

This commit is contained in:
2025-01-05 16:11:14 +01:00
2 changed files with 12 additions and 3 deletions

View File

@@ -395,6 +395,12 @@ def auto_apply_template_structure(sender, instance, created, **kwargs):
If there are nested sub-storages these will be added when the sub-storages
are created automatically.
"""
# Skip recursion if the model is saved 'raw' e.g. when imported
if 'raw' in kwargs:
if kwargs['raw']:
return
if created:
if instance.template:
for sub_storage in instance.template.storage_set.all():