mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #34515 -- Made LocaleMiddleware prefer language from paths when i18n patterns are used.
Regression in94e7f471c4. This reverts commit94e7f471c4(refs #34069) and partly reverts commit3b4728310a. Thanks Anthony Baillard for the report. Co-Authored-By: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
This commit is contained in:
@@ -7,5 +7,6 @@ urlpatterns = i18n_patterns(
|
||||
re_path(r"^(?P<arg>[\w-]+)-page", lambda request, **arg: HttpResponse(_("Yes"))),
|
||||
path("simple/", lambda r: HttpResponse(_("Yes"))),
|
||||
re_path(r"^(.+)/(.+)/$", lambda *args: HttpResponse()),
|
||||
re_path(_(r"^users/$"), lambda *args: HttpResponse(), name="users"),
|
||||
prefix_default_language=False,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user