Changes between Initial Version and Version 1 of Ticket #31911, comment 2
- Timestamp:
- Aug 20, 2020, 5:27:38 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31911, comment 2
initial v1 1 The example project resulted after stripping down [https://github.com/raratiru/django-letsagree, django-letsagree] which uses `get_language ` (through [https://github.com/matthiask/django-translated-fields, `django-translated-fields`]) in the `ModelForm` to allow only certain fields to appear in the relevant admin page.1 The example project resulted after stripping down [https://github.com/raratiru/django-letsagree, django-letsagree] which uses `get_language()` (through [https://github.com/matthiask/django-translated-fields, `django-translated-fields`]) in the `ModelForm` to allow only certain fields to appear in the relevant admin page. 2 2 3 As a user who has set `USE_I18N = True`, I would expect of `get_language ` to at least return the default language, as per the "notion" I get from the docs of [https://docs.djangoproject.com/en/dev/ref/settings/#language-code, `LANGUAGE_CODE`]:3 As a user who has set `USE_I18N = True`, I would expect of `get_language()` to at least return the default language, as per the "notion" I get from the docs of [https://docs.djangoproject.com/en/dev/ref/settings/#language-code, `LANGUAGE_CODE`]: 4 4 5 5