diff --git a/setup.cfg b/setup.cfg index d250511..432e8ca 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = wagtail_word -version = 1.0.9 +version = 1.1.0 description = Easily upload your word documents to Wagtail as pages long_description = file: README.md long_description_content_type = text/markdown diff --git a/wagtail_word.egg-info/PKG-INFO b/wagtail_word.egg-info/PKG-INFO index 776fbcb..64281b5 100644 --- a/wagtail_word.egg-info/PKG-INFO +++ b/wagtail_word.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: wagtail_word -Version: 1.0.8 +Version: 1.0.9 Summary: Easily upload your word documents to Wagtail as pages Home-page: https://github.com/Nigel2392/wagtail_word Author: Nigel diff --git a/wagtail_word/signals.py b/wagtail_word/signals.py index 3d28e77..ff1ed4b 100644 --- a/wagtail_word/signals.py +++ b/wagtail_word/signals.py @@ -10,7 +10,7 @@ def create_default_collection(sender, **kwargs): if not root: root = Collection.add_root(name="Root") - c1, _ = Collection.objects.get_or_create(name=COLLECTION_NAME) + c1, _ = Collection.objects.get_or_create(name=COLLECTION_NAME, depth=1) if not root.get_children().filter(name=COLLECTION_NAME).exists(): root.add_child(instance=c1)