Я получил эту ошибку при попытке использовать wagtailstreamforms. Построил среду с нуля и воспроизвел ошибку. Единственное, что я установил:
Django==3.0.5
wagtail==2.8
wagtailstreamforms==3.9
В base.py добавлено (как предписано в документах):
'wagtail.contrib.modeladmin',
'wagtailstreamforms'
Оставил все остальное нетронутым (стандартный Wagtail base.py), перенесла базу данных , Домашняя страница 127.0.0.1:8000 выдает страницу приветствия Wagtail, как и ожидалось, администратор находится на 127.0.0.1:8000/admin/ с элементом Streamforms в меню слева, как и ожидалось. Когда я нажимаю на нее, я могу создать форму, и когда я создаю первое поле для формы и затем сохраняю ее, я получаю ошибку выше. После этого я больше не могу получить доступ к разделу Streamforms, я сразу же получаю ту же ошибку при попытке.
Я просмотрел все сообщения на SO на wagtailstreamforms и многие подобные элементы на inte rnet, решения не найдено. Что я делаю не так?
Полный журнал ошибок:
Internal Server Error: /admin/wagtailstreamforms/form/
Traceback (most recent call last):
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/core/handlers/base.py", line 145, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/core/handlers/base.py", line 143, in _get_response
response = response.render()
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/response.py", line 105, in render
self.content = self.rendered_content
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/response.py", line 83, in rendered_content
return template.render(context, self._request)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/backends/django.py", line 61, in render
return self.template.render(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/base.py", line 171, in render
return self._render(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/base.py", line 163, in _render
return self.nodelist.render(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/base.py", line 936, in render
bit = node.render_annotated(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/base.py", line 903, in render_annotated
return self.render(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/loader_tags.py", line 150, in render
return compiled_parent._render(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/base.py", line 163, in _render
return self.nodelist.render(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/base.py", line 936, in render
bit = node.render_annotated(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/base.py", line 903, in render_annotated
return self.render(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/loader_tags.py", line 150, in render
return compiled_parent._render(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/base.py", line 163, in _render
return self.nodelist.render(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/base.py", line 936, in render
bit = node.render_annotated(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/base.py", line 903, in render_annotated
return self.render(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/loader_tags.py", line 150, in render
return compiled_parent._render(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/base.py", line 163, in _render
return self.nodelist.render(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/base.py", line 936, in render
bit = node.render_annotated(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/base.py", line 903, in render_annotated
return self.render(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/loader_tags.py", line 62, in render
result = block.nodelist.render(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/base.py", line 936, in render
bit = node.render_annotated(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/base.py", line 903, in render_annotated
return self.render(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/loader_tags.py", line 62, in render
result = block.nodelist.render(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/base.py", line 936, in render
bit = node.render_annotated(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/base.py", line 903, in render_annotated
return self.render(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/loader_tags.py", line 62, in render
result = block.nodelist.render(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/base.py", line 936, in render
bit = node.render_annotated(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/base.py", line 903, in render_annotated
return self.render(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/loader_tags.py", line 62, in render
result = block.nodelist.render(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/base.py", line 936, in render
bit = node.render_annotated(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/base.py", line 903, in render_annotated
return self.render(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/loader_tags.py", line 62, in render
result = block.nodelist.render(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/base.py", line 936, in render
bit = node.render_annotated(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/base.py", line 903, in render_annotated
return self.render(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/defaulttags.py", line 309, in render
return nodelist.render(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/base.py", line 936, in render
bit = node.render_annotated(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/base.py", line 903, in render_annotated
return self.render(context)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/template/library.py", line 214, in render
_dict = self.func(*resolved_args, **resolved_kwargs)
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/wagtail/contrib/modeladmin/templatetags/modeladmin_tags.py", line 94, in result_list
'results': list(results(view, object_list))})
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/wagtail/contrib/modeladmin/templatetags/modeladmin_tags.py", line 74, in results
for item in object_list:
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/db/models/query.py", line 276, in __iter__
self._fetch_all()
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/db/models/query.py", line 1261, in _fetch_all
self._result_cache = list(self._iterable_class(self))
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/db/models/query.py", line 74, in __iter__
for row in compiler.results_iter(results):
File "/Users/paulsmits/Code/MyCompany/streamformserror/env/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1095, in apply_converters
value = converter(value, expression, connection)
TypeError: from_db_value() missing 1 required positional argument: 'context'
[12/Apr/2020 19:32:19] "GET /admin/wagtailstreamforms/form/ HTTP/1.1" 500 304823