mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #27402 -- Fixed incorrect LocaleMiddleware redirects with prefix_default_language=False.
This commit is contained in:
committed by
Tim Graham
parent
ade52ef71f
commit
b8a815e9df
@@ -6,5 +6,6 @@ from django.utils.translation import ugettext_lazy as _
|
||||
urlpatterns = i18n_patterns(
|
||||
url(r'^(?P<arg>[\w-]+)-page', lambda request, **arg: HttpResponse(_("Yes"))),
|
||||
url(r'^simple/$', lambda r: HttpResponse(_("Yes"))),
|
||||
url(r'^(.+)/(.+)/$', lambda *args: HttpResponse()),
|
||||
prefix_default_language=False,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user