Skip to content
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

USE_I18N=False causes TypeError when attempting to access Wagtail admin #166

Open
MisterTJB opened this issue Jan 19, 2021 · 0 comments
Open

Comments

@MisterTJB
Copy link

Expected behaviour

Wagtail StreamForms should be resilient to projects that set USE_I18N=False in the main project settings or the installation docs should include a caveat that users of Wagtail StreamForms should set USE_I18N=True

Actual behaviour

Accessing the admin UI raises a TypeError:

TypeError at /admin/wagtailstreamforms/form/
__str__ returned non-string (type __proxy__)

Switching USE_I18N to True fixes the error.

Steps to reproduce the behaviour

  1. Create a new project with Wagtail and Wagtail StreamForms (I'm using Django-3.1.5, wagtail-2.11.3 and wagtailstreamforms-3.13)
  2. In settings/base.py set USE_I18N=False
  3. Access the admin UI in a browser (doesn't matter if you're logged in or not)
  4. TypeError 💥
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant