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

Participant API test fails when using DDM on a site together with internationalized wagtail urls #23

Open
Nico-AP opened this issue Feb 9, 2023 · 0 comments

Comments

@Nico-AP
Copy link
Contributor

Nico-AP commented Feb 9, 2023

If you use DDM on a Django site together with wagtail (tested with v4.1) and you have internationalization enabled for your wagtail urls, we recommend to use the prefix_default_language=False for the i18n_patterns:

urlpatterns += i18n_patterns(
    path('', include(wagtail_urls)),
    prefix_default_language=False
)

Not doing this will cause ddm.tests.test_apis.test_participant_deletion_with_regular_login to fail.
In practice, the participant API still seems to work properly despite the test failing, however, unexpected behaviour cannot be ruled out at this point.

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