Traceback (most recent call last):


 "/home/volume/utilities/python/lambda-layers/postgresql/python/lib/python3.7/site-packages/orator/orm/model.py", line 57, in __getattr__

return type.__getattribute__(cls, item)
AttributeError: type object 'Pivot' has no attribute 'boot_pivot'

Traceback (most recent call last):


 "/home/karl/projects/wagtail/wagtail/documents/tests/test_admin_views.py", line 118, in test_post

response = self.client.post(reverse('wagtaildocs:add'), post_data)


 "/home/karl/projects/wagtail/venv/lib/python3.6/site-packages/django/test/client.py", line 525, in post

response = super().post(path, data=data, content_type=content_type, secure=secure, **extra)


 "/home/karl/projects/wagtail/venv/lib/python3.6/site-packages/django/test/client.py", line 341, in post

secure=secure, **extra)


 "/home/karl/projects/wagtail/venv/lib/python3.6/site-packages/django/test/client.py", line 404, in generic

return self.request(**r)


 "/home/karl/projects/wagtail/venv/lib/python3.6/site-packages/django/test/client.py", line 485, in request

raise exc_value


 "/home/karl/projects/wagtail/venv/lib/python3.6/site-packages/django/core/handlers/exception.py", line 35, in inner

response = get_response(request)


 "/home/karl/projects/wagtail/venv/lib/python3.6/site-packages/django/core/handlers/base.py", line 128, in _get_response

response = self.process_exception_by_middleware(e, request)


 "/home/karl/projects/wagtail/venv/lib/python3.6/site-packages/django/core/handlers/base.py", line 126, in _get_response

response = wrapped_callback(request, *callback_args, **callback_kwargs)


 "/home/karl/projects/wagtail/venv/lib/python3.6/site-packages/django/views/decorators/cache.py", line 31, in _cache_controlled

response = viewfunc(request, *args, **kw)


 "/home/karl/projects/wagtail/wagtail/admin/urls/__init__.py", line 102, in wrapper

return view_func(request, *args, **kwargs)


 "/home/karl/projects/wagtail/wagtail/admin/decorators.py", line 34, in decorated_view

return view_func(request, *args, **kwargs)


 "/home/karl/projects/wagtail/wagtail/admin/utils.py", line 144, in wrapped_view_func

return view_func(request, *args, **kwargs)


 "/home/karl/projects/wagtail/wagtail/documents/views/documents.py", line 96, in add

doc = Document(uploaded_by_user=request.user)


 "/home/karl/projects/wagtail/venv/lib/python3.6/site-packages/django/db/models/base.py", line 453, in __init__

val = field.get_default()


 "/home/karl/projects/wagtail/venv/lib/python3.6/site-packages/django/db/models/fields/related.py", line 925, in get_default

field_default = super().get_default()


 "/home/karl/projects/wagtail/venv/lib/python3.6/site-packages/django/db/models/fields/__init__.py", line 775, in get_default

return self._get_default()


 "/home/karl/projects/wagtail/wagtail/core/models.py", line 1989, in get_root_collection_id

return Collection.get_first_root_node().id
AttributeError: 'NoneType' object has no attribute 'id'
