forked from CGM_Public/pretix_original
Correct order of middlewares, thereby fix event list widget on custom domains
With the incorrect order, Django used the wrong URL config file to determine whether this URL is valid and APPEND_SLASH kicked in too often.
This commit is contained in:
@@ -40,6 +40,13 @@ def test_event_on_custom_domain(env, client):
|
||||
assert r.status_code == 200
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_path_without_trailing_slash_on_custom_domain(env, client):
|
||||
KnownDomain.objects.create(domainname='foobar', organizer=env[0])
|
||||
r = client.get('/widget/product_list', HTTP_HOST='foobar')
|
||||
assert r.status_code == 200
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_event_with_custom_domain_on_main_domain(env, client):
|
||||
KnownDomain.objects.create(domainname='foobar', organizer=env[0])
|
||||
|
||||
Reference in New Issue
Block a user