New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: 'str' object is not a mapping in Streamforms Forms Pages #542
Comments
Can you provide the steps to reproduce this error? E.g. What buttons were clicked in what order, or what code snippets were implemented, etc. |
Hi @vsalvino,
Here's the list of packages: I know, this is more extensive than that is needed for a vanilla install. I've reused my original Pipfile. |
Perfect, thanks for the details. I will investigate. |
I think this issue was fixed in 1.0.3, for a bug that was introduced in 1.0.0. (#558) If you have an existing site, can you try the fix in the release notes: https://docs.coderedcorp.com/wagtail-crx/releases/v1.0.3.html Or on a new site, start with a vanilla install >=1.0.3 |
The saved form data on Forms Pages cannot be displayed for Streamforms, because of the following error:
Traceback (most recent call last):
File "/home/coderedcms/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/home/coderedcms/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/coderedcms/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/views/decorators/cache.py", line 62, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File "/home/coderedcms/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/wagtail/admin/urls/init.py", line 161, in wrapper
return view_func(request, *args, **kwargs)
File "/home/coderedcms/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/wagtail/admin/auth.py", line 182, in decorated_view
response = view_func(request, *args, **kwargs)
File "/home/coderedcms/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/wagtail/contrib/forms/views.py", line 23, in get_submissions_list_view
return form_page.serve_submissions_list_view(request, *args, **kwargs)
File "/home/coderedcms/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/coderedcms/models/page_models.py", line 1497, in serve_submissions_list_view
return view(request, form_page=self, *args, **kwargs)
File "/home/coderedcms/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/views/generic/base.py", line 84, in view
return self.dispatch(request, *args, **kwargs)
File "/home/coderedcms/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/wagtail/contrib/forms/views.py", line 207, in dispatch
return super().dispatch(request, *args, **kwargs)
File "/home/coderedcms/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/views/generic/base.py", line 119, in dispatch
return handler(request, *args, **kwargs)
File "/home/coderedcms/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/views/generic/list.py", line 174, in get
context = self.get_context_data()
File "/home/coderedcms/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/wagtail/contrib/forms/views.py", line 310, in get_context_data
form_data = submission.get_data()
File "/home/coderedcms/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/wagtail/contrib/forms/models.py", line 56, in get_data
return {
TypeError: 'str' object is not a mapping
Running Codered 1.0.1
Have you seen this before?
The text was updated successfully, but these errors were encountered: