Compare commits

..

No commits in common. "e74a28b0a8662d2c71a4cf652184897dd6951777" and "2fdcfe8baf4f026a8a228f4b5db62ed497c7df79" have entirely different histories.

2 changed files with 3 additions and 12 deletions

View File

@ -1,13 +1,12 @@
annotated-types==0.7.0 annotated-types==0.7.0
asgiref==3.8.1 asgiref==3.8.1
astroid==3.3.5 astroid==2.6.5
certifi==2024.8.30 certifi==2024.8.30
charset-normalizer==3.4.0 charset-normalizer==3.4.0
crispy-bootstrap5==2024.10 crispy-bootstrap5==2024.10
dill==0.3.9
Django==5.1.3 Django==5.1.3
django-crispy-forms==2.3 django-crispy-forms==2.3
django-filter==24.3 django-filter==2.4.0
django-qr-code==4.1.0 django-qr-code==4.1.0
django-rest-framework==0.1.0 django-rest-framework==0.1.0
django-tex==1.1.10 django-tex==1.1.10
@ -22,17 +21,15 @@ mccabe==0.6.1
packaging==24.2 packaging==24.2
Pillow==8.3.1 Pillow==8.3.1
pipdeptree==2.23.4 pipdeptree==2.23.4
platformdirs==4.3.6
psycopg2-binary==2.9.9 psycopg2-binary==2.9.9
pydantic==2.9.2 pydantic==2.9.2
pydantic_core==2.23.4 pydantic_core==2.23.4
pylint==3.3.1 pylint==2.9.6
requests==2.32.3 requests==2.32.3
segno==1.6.1 segno==1.6.1
setuptools==75.3.0 setuptools==75.3.0
sqlparse==0.4.1 sqlparse==0.4.1
toml==0.10.2 toml==0.10.2
tomlkit==0.13.2
typing_extensions==4.12.2 typing_extensions==4.12.2
tzdata==2024.2 tzdata==2024.2
urllib3==2.2.3 urllib3==2.2.3

View File

@ -376,12 +376,6 @@ def auto_apply_template_structure(sender, instance, created, **kwargs):
If there are nested sub-storages these will be added when the sub-storages If there are nested sub-storages these will be added when the sub-storages
are created automatically. 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 created:
if instance.template: if instance.template:
for sub_storage in instance.template.storage_set.all(): for sub_storage in instance.template.storage_set.all():