Merge branch 'develop' into issue/23-add-docu
This commit is contained in:
commit
e74a28b0a8
@ -1,12 +1,13 @@
|
||||
annotated-types==0.7.0
|
||||
asgiref==3.8.1
|
||||
astroid==2.6.5
|
||||
astroid==3.3.5
|
||||
certifi==2024.8.30
|
||||
charset-normalizer==3.4.0
|
||||
crispy-bootstrap5==2024.10
|
||||
dill==0.3.9
|
||||
Django==5.1.3
|
||||
django-crispy-forms==2.3
|
||||
django-filter==2.4.0
|
||||
django-filter==24.3
|
||||
django-qr-code==4.1.0
|
||||
django-rest-framework==0.1.0
|
||||
django-tex==1.1.10
|
||||
@ -21,15 +22,17 @@ mccabe==0.6.1
|
||||
packaging==24.2
|
||||
Pillow==8.3.1
|
||||
pipdeptree==2.23.4
|
||||
platformdirs==4.3.6
|
||||
psycopg2-binary==2.9.9
|
||||
pydantic==2.9.2
|
||||
pydantic_core==2.23.4
|
||||
pylint==2.9.6
|
||||
pylint==3.3.1
|
||||
requests==2.32.3
|
||||
segno==1.6.1
|
||||
setuptools==75.3.0
|
||||
sqlparse==0.4.1
|
||||
toml==0.10.2
|
||||
tomlkit==0.13.2
|
||||
typing_extensions==4.12.2
|
||||
tzdata==2024.2
|
||||
urllib3==2.2.3
|
||||
|
@ -376,6 +376,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():
|
||||
|
Loading…
Reference in New Issue
Block a user