Skip to content

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

@Nico-AP

Description

@Nico-AP

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions