Compare commits
No commits in common. "46a94c96880c0257df93a78e1935b43d66fad44a" and "21ac4a8c068c94db3a3a02b0e3cf1ac07c2aaa75" have entirely different histories.
46a94c9688
...
21ac4a8c06
@ -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
|
||||
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