#30272: get_language_from_path not respecting i18n_patterns
prefix_default_language=False
-------------------------------------+-------------------------------------
Reporter: Stefan Wehrmeyer | Owner: nobody
Type: Bug | Status: new
Component: | Version: 2.1
Internationalization |
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Stefan Wehrmeyer):
I added a test case here:
https://github.com/django/django/pull/11123
I created the new `UnprefixedDefaultLanguageUtilsTests` based on the
`UnprefixedDefaultLanguageTests` class (which is testing
`LocaleMiddleware` behaviour on i18n URLs without prefix). All methods
pass except `test_default_lang_without_prefix` ([https://djangoci.com/job
/pull-requests-bionic/database=postgis,label=bionic-
pr,python=python3.7/4322/testReport/ e.g. one test on DjangoCI]).
This could be resolved by making the language detection of
`LocaleMiddleware` and `get_language_from_request` behave the same way.
--
Ticket URL: <https://code.djangoproject.com/ticket/30272#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.7fc30e74904aabf0f6e81280a637f808%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.